Horje
delete line in sed Code Example
sed remove line containing
sed '/pattern to match/d' ./infile
delete a line starting with sed
# Delete all lines starting with '#'
$ sed -i '/^#/d' filepath
delete line in sed
# -i here update the file, try with and without -i, 
sed -i -e "/your_pattern/d" file 
sed -i -e "/your_pattern/,+2 d" file  # 2 lines after the pattern
sed -i -e '5,5d" file # remove 5th line




Shell

Related
resolvconf set dns Code Example resolvconf set dns Code Example
set java home path Code Example set java home path Code Example
material ui alert module Code Example material ui alert module Code Example
django.core.exceptions.ImproperlyConfigured: Requested setting ROOT_URLCONF, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call se django.core.exceptions.ImproperlyConfigured: Requested setting ROOT_URLCONF, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call se
how to remove git from a project Code Example how to remove git from a project Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8