Javatpoint Logo
Javatpoint Logo

Linux cat command (as end marker)

The 'cat << EOF ' option displays end marker at the end of a file. This is called here directive and file content will be saved at the given end marker.

File can be also saved with the help of 'ctrl + d ' keys. It works same as end marker.

Note: Any word other than 'EOF' can be used for the end marker.

Syntax:

Example:

Linux cat end marker

In the above snapshot, we have created 'exm.txt' file with 'EOF' as end marker by passing the command "cat > exm.txt << EOF".

Next TopicLinux tac




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA