How to install bootstrap 5 and make it work with Ruby 2.7.2 + on Rails 6.1 +
Rails 6 follow webpacker, you don't need to install a gem, do this instead In…
How to search and replace a word in file in Linux?
sed -i 's/original/new/g' file.txt
Explanation:
sed
= Stream EDitor-i
= in-place (i.e. save back to the original file)s
= the substitute commandoriginal
= a regular expression describing the word to replace (or just the word itself)new
= the text to replace it withg
= global (i.e. replace all and not just the first occurrence)file.txt
= the file name