bash programming
Konstantinos Pistiolis
kpistiolis at yahoo.com
Sun May 27 11:35:02 EEST 2001
? ..................
? Deyteron, yparxei kapoios tropos na apo8hkeysw sto
? variable pou 8elw mono to
? prwto token tou output tou grep? Twra dhladh h
? entolh pou trexei einai kati
? tou styl
?
? kill -9 1106 pts/1 00:00:00 wvdial
?
? Mporw na to periorisw ayto se ena pio swsto kill
? 1106? Dhl. na pairnei mono
? tous prwtous 4 xarakthres apo to output kai na tous
? apo8hkeyei sto variable,
? oxi olo to output tou grep.
awk '{print $1}'
to awk pairnei oloklhrh th grammh, kai s' aythn
ektelei to programma '{print $1}' poy shmainei "o,ti
kai na exei h grammh, ektypwse to prwto orisma"
Mporeis na to xrisimopoihseis olo se mia entolh
kill -9 `ps -e | grep wvdial | awk '{print $1}'`
pros8etontas o,ti alla grep xreiazontai, h na baleis
to awk na elegksei kai ta alla orismata
?
? TIA
?
? -A
?
?
? PS: Se ayta me boh8hse ena online biblio gia shell
? programming (SAMS teach
? yourself in 24hrs series), opoios endiaferetai as
? koitaksei sthn
? http://infobase.informit.com/linux/
?
? exei arketa+endiaferonta+free biblia gia newbies
?
? --
? linux-greek-users mailing list --
http://lists.hellug.gr
____________________________________________________________
Do You Yahoo!?
Αποκτήστε τη δωρεάν @yahoo.gr διεύθυνση σας στο http://www.otenet.gr
More information about the Linux-greek-users
mailing list