I want to put multiple filepaths as a string in bash script, so I can pass this string to another program. When I concatenate these filepaths I get the error: No such file or directory. Bash has to tread this filepath as a string instead of a file...
Im concatenating this way:
all=""
for path in $dir/*; do
filePath="$path/file.txt"
$all="$all I=$filePath"
done
echo $all
How can I get this output?
I=first/file.txt I=second/file.txt etc.
pathat all...