The time now is 01.11.2024 - 01:34 |
Author |
Message |
|
Post subject: parsovanie textu shell, awk, sed ...
Posted: 07.03.2007 - 09:28 #47369
|
|
Ucen
Joined: Jún 24, 2003
Posts: 598
Location: /dev/null
|
|
Mam otazku mam v premennej slovo, je jedno ake a potrebujem dostat z neho prve pismeno. nejake napady ?
jeto linux shell
skusal som awk + regexp ale nic z toho nerobilo to com chcel. Prve ma napadlo: cat $nieco | awk /[^.$]/ ale to vracia cely obsah ... |
|
|
|
|
|
|
Post subject: RE: parsovanie textu shell, awk, sed ...
Posted: 07.03.2007 - 09:32 #47370
|
|
Guru
Joined: Jan 30, 2003
Posts: 1572
|
|
cut -c 1
myslim, ale pozri si to pre istotu |
|
|
|
|
|
|
Post subject: RE: parsovanie textu shell, awk, sed ...
Posted: 07.03.2007 - 09:39 #47371
|
|
Ucen
Joined: Jún 24, 2003
Posts: 598
Location: /dev/null
|
|
ooo neskonale diky .. ono ma to nenapadlo funguje presne ako ma |
|
|
|
|
|
|
All times are GMT
|
|
|
|
|
Powered by PNphpBB2 © 2003-2005 The PNphpBB Group Credits |
|
|