Jeden radek z txt souboru
    Roman Neuhauser 
    neuhauser at chello.cz
       
    Tue Oct  5 18:23:18 CEST 2004
    
    
  
# mkondelka at smpas.cz / 2004-10-05 09:34:35 +0200:
> Potreboval bych precist jeden (libovolny, ktery si urcim) radek z 
> nejakeho textoveho souboru.Nemam ideu, jak to udelat...slo by to pres 
> awk nebo nejak jinak? PERLem by to slo urcite, ale ten neumim,dekuji za 
> napady.
    sed -n <cislo>p <soubor>
    awk '<cislo> == FNR {print}' <soubor>
    perl -ne 'if (<cislo> == $.) {print}' <soubor>
-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html
    
    
More information about the Users-l
mailing list