Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sed substitute a word in a file by the content in another file

sed "s/100/$(cat -E file2 |tr -d '
')/;s/$/
/g" file1
Comment

sed substitute a word in a file by the content in another file

sed -e s/100/$(tr 
 $ < file2)/ -e s/$/
/g file1
Comment

PREVIOUS NEXT
Code Example
Shell :: pig latin group by 
Shell :: sbatch cancel job 
Shell :: git clone only single file 
Shell :: how to install ros package 
Shell :: linux count lines csv files 
Shell :: dpkg command 
Shell :: ansible playbook to set passwordless sudo 
Shell :: install arch package 
Shell :: share folder on network linux 
Shell :: upload transfer.sh 
Shell :: kubernetes force delete command 
Shell :: how to boot from grub rescue 
Shell :: chown recursive 
Shell :: bash list files for user 
Shell :: zsh shell in linux 
Shell :: how to make maven clean install faster in eclipse 
Shell :: sed replace with variable 
Shell :: docker run image 
Shell :: change git committed message 
Shell :: command running processes linux 
Shell :: curl trust self signed certificate 
Shell :: rsync delete old files 
Shell :: install node_modules folder 
Shell :: append newline to file 
Shell :: create branch from remote branch 
Shell :: renommer la branche main de git 
Shell :: letsencrypt error 
Shell :: sms_autofill flutter 
Shell :: commit with git 
Shell :: droidcam usb 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =