cat (display files)

team bbl


Displays one or more files. Can also be used to concatenate files.

 Format:    cat filenames Examples:  cat file1 file2            cat            cat file1 file2 > file3            cat > file_out 

Example 2: If you type cat without a filename, cat waits for you to type text using the keyboard. When you type some text and press <Enter>, the text you typed is displayed.

Example 3: You can use cat to combine several files into one file. Files are stored one by one, according to the order that they are named in the cat command.

Example 4: You can create a file containing text you enter. After you enter the command, cat will wait for you to enter text and will store the text you enter in file_out. When you have finished typing the text, press <Ctrl-d>.

    team bbl



    Spring Into Linux
    Spring Into Linux
    ISBN: 0131853546
    EAN: 2147483647
    Year: 2005
    Pages: 362
    Authors: Janet Valade

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net