Search Results

Search: Posts Made By: CHoggarth
1,579
Posted By Mannu2525
Here you go - # cat examplefile.txt ...
Here you go -

# cat examplefile.txt
ghi|NN603762|eee
mno|NN607265|ttt
pqr|NN613879|yyy
stu|NN615002|uuu
jkl|NN607265|rrr
vwx|NN615002|iii
yzA|NN618555|ooo
def|NN190486|www...
1,108
Posted By rangarasan
nawk
Hey,

To format the output in nawk, you can use printf,

Here is the sample implementation,


echo 'Input string'|nawk '{printf("%s %20s\n",$1,$2);}'

Ouput:

Input string
...
1,317
Posted By radoulov
grep -E '^("[^"]+",){3}"[0-9]+"' infileIf your...
grep -E '^("[^"]+",){3}"[0-9]+"' infileIf your PATH defaults to a grep implementation which is not POSIX, try with egrep.
Showing results 1 to 3 of 3

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