Search Results

Search: Posts Made By: cdc01
964
Posted By tarun_agrawal
With AWK awk -vfile=abc.csv...
With AWK
awk -vfile=abc.csv '{sub(/(\.csv|\.txt.).*$/,".txt",file);print file}' <<<""
4,167
Posted By MacMonster
Simply pipe the output of "ls" to "sed". That is:...
Simply pipe the output of "ls" to "sed". That is:


ls -l BU/AD_*/ANTS*/SERVER/REJECT | sed '/^.*:$/{N;N;/\ntotal 0\n$/d;}'
4,167
Posted By MacMonster
sed is easier to perform multi-line matching. ...
sed is easier to perform multi-line matching.


sed '/^.*:$/{N;N;/\ntotal 0\n$/d;}'
4,167
Posted By ieth0
your "total x" result isnt in thesame line of...
your "total x" result isnt in thesame line of your file path thats why you cant use grep -v to exclude lines with "total 0" in it.

so you need to grep "total 0" after your path line.

so if you...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 08:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy