On Tue, 01 May 2018 13:30:26 GMT, Jan Panteltje
wrote:
> On a sunny day (Tue, 1 May 2018 12:11:30 +0100) it happened Ahem A Rivet's
> Shot wrote in
>:
>
>>On Tue, 01 May 2018 09:51:49 GMT
>>Jan Panteltje wrote:
>>
>>> cat dvd-list.txt | grep movie_name
>>> cat dvd-list.txt | grep amovie
>>
>> That poor overworked cat :)
>
> Yep, cat is a useful utility.
> cat is often used, sometimes not really needed as you can use '<' to
> read from a file in many cases.
I think the point is you don't need cat at all. Why not use
grep movie_name dvd-list.txt
> All this shows is that data processing with the simple already
> available utilities on your raspberry is EASY and FAST.
> If you had to enter those 197 entries into a databeast, and then
> query it, pfff.
Sure but you ain't got very structured data, doesn't handle
input of data very well and you haven't got referential integrity
etc.
What you have is a fine way of dealing with lightly structured
data which doesn't require a lot of data entry - especially
when you add in use of awk and sed. It isn't a direct replacement
for the applications I would use a database for, and vice-versa.
--
Andy Leighton => andyl@azaal.plus.com
"We demand rigidly defined areas of doubt and uncertainty!"
- Douglas Adams
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|