Search Results

Search: Posts Made By: codecaine
1,174
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,174
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
13,036
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,783
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...
13,069
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,782
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>...
916
Posted By michaelrozar17
could try.. awk '$2 ~ /^AGG/' inputfile >...
could try..
awk '$2 ~ /^AGG/' inputfile > outfile
3,020
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 02:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy