I currently having a problem in which I am trying to read read/monitor the content of a list of files which is stored in text file.
Problem with my current approach is that leads to all the files being opened in nano, rather than giving me the option, whether I want to delete the entry or not.. (last part not implemented yet..)
The text file is stored like this
Aline
Bline
Cline
Dline
Eline
What I am currently doing is:
cat file | while read line; do nano "$line"; done
which rather opening one file at time, opens all the files at the same time.
Solution?
done
nano
complains about stdin and the whole thing just fails.)