Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash remove empty line

sed -r '/^s*$/d'
Comment

how to remove blank lines in bash

grep "S" file.txt
Comment

bash how to delete blank lines

sed -i '/^$/d' foo
Comment

PREVIOUS NEXT
Code Example
Shell :: src refspec master does not match any 
Shell :: how to install socket.io to node js 
Shell :: refusing to merge unrelated git 
Shell :: apache2 connection refused ubuntu 
Shell :: size folder command line 
Shell :: push docker image to docker hub 
Shell :: minishift admin-user addon 
Shell :: check if command exists bash 
Shell :: git branch from current branch 
Shell :: git switch 
Shell :: install serverless framework 
Shell :: heroku ubuntu install 
Shell :: netlify cli 
Shell :: github api search 
Shell :: git stash save 
Shell :: powershell copy-item specify credentials 
Shell :: install mongosh 
Shell :: cannot send file to server with nginx 
Shell :: bash list all files in directory and subdirectories 
Shell :: rustup uninstall nightly 
Shell :: delete branches in bulk git 
Shell :: Git - delete specific branch 
Shell :: where is my ubuntu folder located 
Shell :: add user centos 7 sudo 
Shell :: bluetooth does not work after lock ubuntu 
Shell :: How to discard files from stash in git 
Shell :: how to make NTFS read only file system writable in linux 
Shell :: linux curl upload file ftp 
Shell :: get my ip address linux 
Shell :: update ruby version ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =