04-07-2009
18,
1
Join Date: Mar 2009
Last Activity: 9 January 2012, 12:48 AM EST
Posts: 18
Thanks Given: 0
Thanked 1 Time in 1 Post
How does $(<file) work?
If you enter " < myfile " on shell prompt directly, nothing to output. But for ' $(< myfile) ' , the contents of myfile replace $(< myfile). That has the same effect as ' $(cat myfile) '. I never seen such usage before and dont know how $(< myfile) work. Anyone can give some explanation?