cat

concatenate files and print on the standard output

copy
32
1
cat file1 file2 | gzip > foo.gzTo compress two files into foo.gz yielding a better compression by compressing all members at once.

details |

copy
21
2
cat myfile.txt | sed 5qOutput the first 5 line of myfile.txt

details |

copy
12
0
cat /var/log/apache/access_log | grep 404Look for 404 logs in apache

8 years, 7 months ago john 0 | details |

copy
8
0
cat /etc/passwd | grep rootlook for the root user in /etc/passwd

8 years, 7 months ago john 0 | details |

copy
5
0
cat f - g

source | details |

copy
5
0
cat /var/log/apache/access_log | grep -v googlefilter out hosts matching on the string google

8 years, 7 months ago john 0 | details |

copy
4
1
cat /etc/passwd |cut -d: -f6cat the /etc/passwd file cutting the 6 field using : as a delimiter.

details |

copy
4
0
cat urls.txt | xargs wget –cDownload all the urls in urls.txt

8 years, 7 months ago john2 0 | details |

copy
3
0
cat -v file.txtShow control characters in file

8 years, 7 months ago john2 0 | details |

copy
2
0
cat /etc/issuedisplay the content of issue

8 years, 7 months ago john2 0 | details |

copy
1
0
cat foo.bmp | bmptoppm | pnmtojpeg > foo.jpg

source | details |

copy
1
0
cat -n example.txtcat the contents of example.txt and show line numbers

8 years, 7 months ago john2 0 | details |

copy
0
0
cat foo.html | w3m -dump -T text/html >foo.txt

source | details |

copy
0
0
cat foo.html | w3m -T text/html

source | details |

copy
0
0
cat example.txt example.txt > double.txtcat the contents of example.txt into double.txt twice

8 years, 7 months ago john2 0 | details |

copy
0
0
cat my-long-file.txt | moreDisplay the file my-long-file.txt using more

8 years, 7 months ago john2 0 | details |

copy
0
0
cat file1 file2 file3 > file4Join all the files into file4

8 years, 7 months ago john2 0 | details |

copy
0
0
cat -T myfile.txtDisplay the tab characters

8 years, 7 months ago john2 0 | details |