[kanchilug] 1D1C - cat

  • From: Dhana Sekar <tkdhanasekar@xxxxxxxxx>
  • To: ILUG-C <ilugc@xxxxxxxxxxxxx>, kanchilug@xxxxxxxxxxxxx
  • Date: Sat, 10 Aug 2013 21:20:46 +0530

command: cat
usage: concatenate files and print on the standard output

syntax: cat [OPTION]... [FILE]...

examples:

1. To display options and help for this command

    $ cat --help

2. To create a new file

     $ cat > sample1.txt

3. To append data into the file

     $ cat >> sample1.txt

4. To display a file

     $ cat sample1.txt

5. To concatenate several files and display

     $ cat sample1.txt sample2.txt

6. To concatenate several files and to transfer the output to another file

     $ cat sample1.txt sample2.txt > sample3.txt

regards,
dhanasekar

Other related posts: