sed command regex example
The content sed_test file as picture below:Lines starting from 10 line till 15 line printed
[[email protected] ~]$ sed -n '10,12p' sed_testThe output as below:
10 operator:x:11:0:operator:/root:/sbin/nologinHow to Lines starting from 10 line till end line printed
11 games:x:12:100:games:/usr/games:/sbin/nologin
12 ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
[[email protected] ~]$ sed -n '10,$p' sed_testThe output as picture below:
Conclusion
Thought the article, you can printed line to line of file use sed command. How to Lines starting from A line till end line printedThanks for reading sed command regex example My blog Zimbra Mail Server,linux,bash script,centos,linux command I hope this is useful.