How can I do with bash
echo "line1 from file2" >> echo "line1 from file1"
?

Follow

I got a better one:
for run in {1..x}; do sed -n "$run,${run}p" file1 >> `sed -n "$run,${run}p" file2`;done

· · Web · 1 · 0 · 0

@matrix how about:

i=1;<file1 while read l; do echo $l >> $(sed "${i}q;d" file2); i=$[i+1]; done

Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.