Bash - nahodne vybrani radku ze souboru
Jan Kasprzak
kas na informatics.muni.cz
Čtvrtek Květen 13 08:59:21 CEST 1999
Jan Matejka wrote:
: # vybere obsah dane radky
: ROW_OF_DATA=`/usr/bin/awk "NR==$INDEX { print }" $DATA_FILE`
nebo
ROW_OF_DATA=`sed -n ${INDEX}p <$DATA_FILE'
-Yenya
--
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz> http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz 0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\ Czech Linux Homepage: http://www.linux.cz/ ///
|||| > Where do the -- MARK --s come from ? ||||
|||| It is the sound of Tux the penguin chewing on your system logs. ||||
Další informace o konferenci Linux