Search Results

Search: Posts Made By: jayan_jay
2,948
Posted By jayan_jay
Hope this clears :)
Hope this clears :)
2,948
Posted By jayan_jay
alternate one .. #!/bin/bash nawk -F\|...
alternate one ..

#!/bin/bash
nawk -F\| '{if(a[$1]==a[$1]);if($6!= "") {print $0 >"with_val"} else {if(a[$1]==a[$1]);if($6== "" ) {print $0 >"without_val"}}}' inputfile
nawk -F"|" '{ if ( $6!= ""...
2,948
Posted By jayan_jay
you have missed the flower brackets.. corrected...
you have missed the flower brackets.. corrected one..

$ nawk -F"|" '{ if (!a[$1]) {a[$1]; if ( $6!= "" ) { print $0 } } } ' inputfile
UM113570248|24-AUG-11|4|man1|RR211 Alert: Master Process...
Showing results 1 to 3 of 3

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