[Gllug] Utility to pull fields from lines of a file
Jason Clifford
jason at ukfsn.org
Sun Apr 13 15:03:09 UTC 2008
On Sun, 2008-04-13 at 16:15 +0100, John Winters wrote:
> It must be old age but I've forgotten the name of a standard UNIX utility.
>
> All I want to do is process a file containing lines like this:
>
> able/baker/charlie
> home/made/cakes
>
> and pull out the second field ("baker" and "made") from each one. I
> know I've done it a zillion times before (and you could of course do it
> with Perl) but I'm sure there's a simple UNIX utility which does it.
>
> Will someone prompt my failing memory please?
awk?
sed?
egrep?
perl?
Now that you're seeing just how much being a teacher leads to brain rot
are you still happy to have made the move? ;)
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list