Search Results

Search: Posts Made By: evrurs
1,418
Posted By rdrtx1
try: awk '{a[$1]=$0" "a[$1]}; END {for (i in a)...
try:
awk '{a[$1]=$0" "a[$1]}; END {for (i in a) print a[i]}' sample.txt
2,161
Posted By Don Cragun
This should work: awk ' BEGIN {...
This should work:

awk ' BEGIN { sorting=0 }
/^#/ { if (sorting) {
close("sort")
sorting=0
}
print
next
}...
3,301
Posted By michaelrozar17
To the test file you have posted above, try...
To the test file you have posted above, try something like..
sed '/ARS (11)/!s/.*/SOME TEXT HERE\n&/' test_file
Note: This would not work for all scenarios until there is a exact sample input/test...
3,301
Posted By Vryali
Test file: $ cat test paul, Paul Smith,...
Test file:

$ cat test
paul, Paul Smith, Stevn Smiley, REQ000001, ARS (11)
sam, Sam Martin, Stevn Smiley, REQ000001, ARS (11)
mike, Mike Conway, Stevn Smiley, REQ000001, ARS (11)
mike, Mike...
Showing results 1 to 4 of 4

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