[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: need help with bash command



Le Ven 21 novembre 2008 02:10, Ding Honghui a écrit :.jpg
> dhh@mud:~/test/jpg$ ls | awk -F_ '{print $2}'
> 3563
> 3616
> 3620

IMHO, awk is quite oversized just to cut fields... It is typically a cut
job : "cut -d_ -f2" ;-)

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


Reply to: