1753783 Members
7188 Online
108799 Solutions
New Discussion

Re: basic scripting

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: basic scripting

>Geoff: You can also avoid the cat like so:
for i in $(< /filename )

You beat me. :-)

The difference between $(< file) and while read is that the former allows multiple files per line (delimited by whitespace but read doesn't. Also while read will allow an infinite number of files but $(<) won't.