I have a file (call it id.txt) with multiple IDs (each on a new line):
e.g:
What I need to do is format these for horrible kludgy use in a query, thus I need the following output:
How would I go about doing this?
I assume something like:
Could anyone give me a hand with this? My sed-fu is weak indeed.
e.g:
Code:
127262
172628
918272
817267
916287
What I need to do is format these for horrible kludgy use in a query, thus I need the following output:
Code:
127262 or 172628 or 918272 or 817267 or 916287
How would I go about doing this?
I assume something like:
Code:
for i in $( cat id.txt); do
(something with sed) > output.txt
done
Could anyone give me a hand with this? My sed-fu is weak indeed.