ls -la


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ls -la
# 8  
Old 11-20-2006
Gents,

Missed one space in the 1st one which is not forgiveable even if it is typo..

In regular expression evry chatacter counts.

basically + is one or more characters to match is not present in sed Meta charachers so it can be simulated via " *" or "aa*" which atleast one a and more....

cheers fellas.!!!
# 9  
Old 11-21-2006
Txs a lot to everyone....

but i am not clear how ls -la | sed 's/ */|/g' works.....

cos we are looking for space+space+*, replacing the same by |, how this cmd replaces | between month and date as there is only one space.

rgds,
jam
# 10  
Old 11-21-2006
Bingo..!!!!!!!

space space * means atleast one space....

dose that clear you doub??

cheers
# 11  
Old 11-22-2006
txs......nilesrex......
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question