Greetings, On Sat, Apr 6, 2013 at 10:22 PM, Shrinivasan T <[email protected]>wrote:
> We are using the output redirection > in many situations to redirect the > outputs to a file or a pipe. > > I never used the input redirection. > > Can anyone explain it with some examples? > > AFAIK, broadly, there are three parts to the command: 1. What to do: the command itself -- e.g. ls 2. With what: Command line parameter(s) -- e.g. ls / -- here '/' is the parameter(s) which is usually 'the' stream 3. How to do: Command line options -- ls -al / -- here '-al' is the option and '/' is the parameter Now (2) can be replaced with a stream and that is where '<' operator is used. I realise above is too simplistic for the erudite members of this list. I did see a post using c++, but I felt that for noob it would be too much: like a chicken and egg problem IMHO. Hope the above helps, Regards, Rajagopal _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
