I have multiple files(100-1000) in foo dir. I want to append each filename to its own content. I think the for loop should resolve appending a random string to for each file,
for f in *; do printf "%10s \n" $(shuf -i 50-100 -n 50 -r) >> $f; done
How can I append filename to all this shuffled numbers, directly concatanate them?
for f in *; do printf "%10s \n" $f $(shuf -i 50-100 -n 50 -r) >> $f; done
result in file 5:
5 67 89 69 ...
567 589 569 ...