Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sed add word to beginning of line

$ sed 's/^/#/' file.txt
#add
#character
#at the
#beginning of
#each line
Comment

sed add word to end of line

sed 's/.*/&:80/'  abcd.txt >abcde.txt
Comment

PREVIOUS NEXT
Code Example
Shell :: react native run android shows deprecated items 
Shell :: ssl security check ats 
Shell :: config git ftp 
Shell :: bash return every nth line 
Shell :: install docker-compose ec2 
Shell :: cuda : Depends: cuda-11-5 (= 11.5.0) but it is not going to be installed 
Shell :: linux get current user 
Shell :: gitignore idea 
Shell :: pyinstaller not found 
Shell :: conda install tesseract 
Shell :: grep multiple strings 
Shell :: git blame before specific commit 
Shell :: install code . path in mac 
Shell :: docker delete all containers 
Shell :: push clone repo to own repo 
Shell :: pinterest clone github 
Shell :: delete local branch git 
Shell :: install zsh hyper mac 
Shell :: git name repository 
Shell :: progress bar file.tar.xz extract 
Shell :: ubuntu kill port 
Shell :: remove git proxy local 
Shell :: ionic start server 
Shell :: color table in github readme 
Shell :: bash or 
Shell :: install cv2 
Shell :: how to install ssh in windows 10 
Shell :: bash open program 
Shell :: find process on linux 
Shell :: gradle threw an error while downloading artifacts from the network. retrying to download 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =