Search Results

Search: Posts Made By: codecaine
1,146
Posted By Chubler_XL
grep -E "^[^ ]* (starved and...
grep -E "^[^ ]* (starved and rich|rich|starved)$" infile > output1
grep -Ev "^[^ ]* (starved and rich|rich|starved)$" infile > output2
1,146
Posted By agama
Brute force method: awk -v nf=name.file '...
Brute force method:


awk -v nf=name.file ' /^[^ \t]*[ \t]+starved and rich/ || /^[^ \t]*[ \t]+starved/ || /^[^ \t]*[ \t]+rich/ {print >nf; next;} NF == 1 ' input-file >nonames.file
12,978
Posted By Hammadi dali
Hi You can proceed in this way: awk -F:...
Hi
You can proceed in this way:

awk -F: '{ print "\033[1;31m:" $1 "\033[0m" }' /etc/passwd
17,716
Posted By michaelrozar17
I do not have access to unix box right now, so...
I do not have access to unix box right now, so would not be able to test. Can you post your execution statement..?

---------- Post updated 01-13-11 at 10:26 AM ---------- Previous update was...
12,968
Posted By Scrutinizer
Try this, calling all the 40 files at once on the...
Try this, calling all the 40 files at once on the command line:
awk '$1=$1' RS= FS="\n" OFS=, infile*
1,765
Posted By Franklin52
awk '/<s>/{next} /<\/s>/{print s;s="";next}...
awk '/<s>/{next} /<\/s>/{print s;s="";next} {s=length==1?s $0:s?s FS $0:$0}' file
Explanation:
/<s>/{next} | Skip the line with <s>

/<\/s>/{print s;s="";next} | If the line matches with </s>...
915
Posted By michaelrozar17
could try.. awk '$2 ~ /^AGG/' inputfile >...
could try..
awk '$2 ~ /^AGG/' inputfile > outfile
2,936
Posted By cabrao
paste file1 file2
paste file1 file2
Showing results 1 to 8 of 8

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