I am trying to take a while loop to make soft links from several files from a folder based on a subset from a text file. What I mean is I want to make a soft link if a file exists in a certain text file.
$ cat file.txt
$ ls input
When I do the command
$ while read A B; do
ln -s ./input/$A ./
done < file.txt
I get the soft links for what I wanted but the links appear to be broken (normally they are blue but they appear red on my prompt.
the input directory is in the current working directory. If I make the links using the while loop they are broken (in red) but if I make the links using the