Search Results

Search: Posts Made By: atb299
3,601
Posted By atb299
Thanks vgersh99! And now I can see how you did it...
Thanks vgersh99! And now I can see how you did it I can apply it elsewhere too.

And thanks for the caveat ctsgnb. My real filter file is far far bigger, but $2 is always unique.
17,768
Posted By atb299
Try this:- sed -e "s/^/'/" -e "s/ /' '/g"...
Try this:-

sed -e "s/^/'/" -e "s/ /' '/g" -e 's/$/'"'"'/' input.csv > output.csv

It puts a ' at the start and end of each line, and replaces all the spaces with ' '.
3,601
Posted By atb299
AWK filter from file and print
Dear all,

I am using awk to filter some data like this:-

awk 'NR==FNR{a[$2];next}($1 in a)' FS=":" filter.dat data.dat >! out.dat where the filter and input data look like this:-
...
Showing results 1 to 3 of 3

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