We have already describes few Linux or Unix shell scripts uses cut commands, this post describes cut the specific lines,
For example few lines create in a .txt file,
Linux is an open source operating system
Ubuntu is an open source operating system
Centos is an open source operating system
Unix is an open source operating system
Command is,
$ sed -n '/Ubuntu/,/Unix/p' linux.txt
Now get an output,
Ubuntu is an open source operating system
Centos is an open source operating system
Unix is an open source operating system
Comments (0)