Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux remove first lines of file

# Example usage (3 options):
tail -n +43 input_file	 # Print from the 43rd line on
sed 1,42d input_file	 # Print from the 43rd line on
sed -i 1,42d input_file	 # Remove the first 42 lines in place (meaning 
	# that the file is changed without having to print the output to a 
    # new file)
Comment

delete first two lines of file linux

$ sed -i -e 1,3d vmr_nonprod
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install mvnw 
Shell :: removing duplicate input from a file in the command line 
Shell :: set environment variable linux 
Shell :: git replacing lf with crlf 
Shell :: how to push local created commit to another branch in git 
Shell :: ssh 
Shell :: rdp github shadow 
Shell :: test server download speed 
Shell :: days between two dates in linux 
Shell :: install spark 2.4.0 on ubuntu 
Shell :: repo from bitbucket to github 
Shell :: mkdir creating multiple containing folders 
Shell :: sed from start to match 
Shell :: vim cut paste 
Shell :: How to install vscode on centos 8 
Shell :: curl get url https 
Shell :: download chromium-browser/libffmpeg.so 
Shell :: macos git set vscode as editor 
Shell :: online c linux compiler 
Shell :: windows command cmd date 
Shell :: gitlab login on terminal 
Shell :: install tar.xz on linux 
Shell :: install owlready2 
Shell :: Got socket error trying to find package cupertino_icons at https://pub.dartlang.org. 
Shell :: restart fstab ununtu 
Shell :: grep count words 
Shell :: create a doxygen config file 
Shell :: chsh pam authentication failure 
Shell :: how to add your project to github 
Shell :: kali linux side menu bar disappeared 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =