On Sun, May 1, 2011 at 1:55 AM, Shantanu Unknown
<[email protected]> wrote:
> Hi,
> I am probably doing something dumb , but I couldn't figure it out
> I have a bunch of directory names in a file and I want to print out the
> directory names appended with some numbers.
> So I do
> cat filename|  seq 19 22 | parallel -j1  echo "{1}/output/{2}"
> and for each row of contents of filename I want
> <filenamecontent>/output19
> <filenamecontent>/output20
> <filenamecontent>/output21
> <filenamecontent>/output22

I am re-reading your question. Is what you want this:

line1_of_file/output19
line1_of_file/output20
line1_of_file/output21
line1_of_file/output22
line2_of_file/output19
line2_of_file/output20
line2_of_file/output21
line2_of_file/output22

In that case it is simply doing:

cat filename | parallel seq 19 22 \| parallel -I @ echo {}/output@

which should work in any shell.

/Ole

Reply via email to