[LUGOS] Re: some more bash

Stojan Rancic stojan at aufbix.org
Sat Jul 5 08:49:52 CEST 2003


Hojla root,

Saturday, July 5, 2003, 1:39:00 AM, si napisal(a):


>> zanima me kako ľe z awk in njegovo split funkcijo dobim iz stringa: " aaa:bbb
>> " vn samo aaa (del pred dvopičjem ).
> sed s/:/\ /g | awk '{print $1}'

V bistvu lahko awku dolocis delimiter.. tako da dela tudi nekaj
takega:

awk -F: '{print $1}'



                              GreetZ, Stojan
---------------
Don't panic.  Don't panic.  Don't panic. ... ALL RIGHT, NOW PANIC 




More information about the lugos-list mailing list