Discussion:
questions about accessing files content in script
(too old to reply)
Volodymyr Lyubinets
2011-09-29 21:55:03 UTC
Permalink
In class we used loop like:

for word in 'cat "$2"';do

However, there must be some mistake, since word iterates between words
cat and "$2", which is wrong. What is the problem?
Brad Lushman
2011-09-30 00:55:02 UTC
Permalink
Post by Volodymyr Lyubinets
for word in 'cat "$2"';do
However, there must be some mistake, since word iterates between words
cat and "$2", which is wrong. What is the problem?
You're using the wrong kind of quotes. Try `cat "$2"`.
Volodymyr Lyubinets
2011-09-30 02:16:26 UTC
Permalink
Thanks, sorry to bother you.

Loading...