Linux

Tips and tricks, how-to with Linux (heavy on Ubuntu)

replace a string in a file

BASH:
find . -type f -exec sed -i 's/foo/bar/g' {} +


zsh
sed -i -- 's/foo/bar/g' **/*(D.)

https://unix.stackexchange.com/questions/112023/how-can-i-replace-a-stri...

show names of files of type pdf

find . -type f -name *.pdf -exec echo {} +

Install ruby compass using Ubuntu 20.04 LTS
 

sudo apt-get install make ruby ruby-dev;
sudo gem install compass;