santa.sh
Chris F.A. Johnson
cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org
Mon Dec 24 18:31:36 UTC 2007
On Mon, 24 Dec 2007, Henry de Valence wrote:
> On December 23, 2007 10:08:10 pm Robert Brockway wrote:
>> cat /etc/passwd > list
> Wouldn't it be better to do " cat /etc/passwd | cut -d':' -f1 > list "?
No, there is no need for cat:
cut -d':' -f1 /etc/passwd > list
Or possibly:
cut -d':' -f5 /etc/passwd > list
--
Chris F.A. Johnson, webmaster <http://woodbine-gerrard.com>
========= Do not reply to the From: address; use Reply-To: ========
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list