This question already has an answer here:
I have a
CT.txt with below input data.
test testing test 1
And with below script:
#!/bin/bash for CITY in $(cat /home/user/CT.txt) do FILES=/mnt/dir1/dir2/$CITY/* echo $FILES
Giving me output as follow:
/mnt/dir1/dir2/test /mnt/dir1/dir2/testing /mnt/dir1/dir2/test/* /mnt/dir1/dir2/1/*
where output should be:
/mnt/dir1/dir2/test /mnt/dir1/dir2/testing /mnt/dir1/dir2/test 1
How to make
CT.txt file to read having space in between test 1.