For example, I have a file
1 2 3
then I want to print from the second line to the tail
How to do it in linux
tail -n+2 my_file
will output all lines in myfile starting from line 2. ( -n2 will show you the last two lines.)
myfile
-n2
tail has more features. Enter man tail for full documentation.
tail
man tail
shorter with
$ sed 1d filename
or with awk
awk
$ awk 'NR>1' filename
Source: https://habr.com/ru/post/1239388/More articles:NumPy precision when using a point product - pythonpsutil in Apache Spark - pythonWhy "git status" displays a binary file as changed when it is absent, and the file modes are the same - gitUse Javascript frameworks without build tools like grunt and gulp? - javascriptHow to convert selected HTML to Json? - jsonFlip Between Two ViewControllers Under The Same NavigationController - iosInvalid vars_prompt for roles - ansibleClosing a modular form after a successful Ajax application - ajaxFlip ViewController, but support the same NavigationController with Storyboard - iosSorting each level of a nested multidimensional PHP array - sortingAll Articles