Stats

330 Contributors: 16
2017-07-13
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Using cat

Download bash eBook

Syntax

  • cat [OPTIONS]... [FILE]...

Parameters

OptionDetails
-nPrint line numbers
-vShow non-printing characters using ^ and M- notation except LFD and TAB
-TShow TAB characters as ^I
-EShow linefeed(LF) characters as $
-eSame as -vE
-bNumber nonempty output lines, overrides -n
-Aequivalent to -vET
-ssuppress repeated empty output lines, s refers to squeeze

Remarks

cat can read from both files and standard inputs and concatenates them to standard output

Related Examples