$ sed 's/^/#/' file.txt
#add
#character
#at the
#beginning of
#each line
sed 's/.*/&:80/' abcd.txt >abcde.txt
# Save suffixed file into a new file
sed -e 's/$/suffix/' file > file.new
# Edit file and overwrite with suffixed text
sed -i -e 's/$/suffix/' file
Code Example |
---|
Shell :: |
Shell :: |
Shell :: uniq linux |
Shell :: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
Shell :: |
Shell :: |
:: |
Shell :: remove commits from github |
:: how to install mono on ubuntui |
Shell :: |
Shell :: |
Shell :: |
:: aab to apk |
Shell :: |
Shell :: gcloud shell ssh |
:: |
:: bash count elements in string |
:: install tar.xz in ubuntu 20.4 |
:: |
Shell :: |
:: |
:: install mongo ubuntu 20.04 |
Shell :: |