You're viewing a comment by Rahul and its responses.

March 18, 2010, 10:23

Set Cartesian Product. Find A x B
|cat N
1
2
3
|cat A
a
b
c
d

|cat A |while read a ; do
cat N |sed -e "s/./& $a/g"
done

Oh well, at-least one while is removed. I could have done better with xargs and removed the second while too, but it isn't like find unfortunately in that it doesn't allow me to embed pipelines in the arg

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.