Useful Linux Commands
Find all the files in the with extension .py and copy them into an existing folder ~/projects/scripts
find . -name "*.py" -exec cp "{}" ~/projects/scripts \;
Copy all the data files excluding some files like .dcd, .BAK .ppm
rsync -avr --exclude='*.BAK' --exclude='*.dcd' --exclude='*.ppm' /home/hjoshi /run/media/hjoshi/
Fine all the files having extension .png in the directory your_folder
find {your_folder} -name "*.png"
4. Add some_text to the beginning of all the lines in a file input_file
sed -i -e 's/^/some_text /' input_file
5. Add some_text to the end of all the lines in a file input_file
sed -i s/$/\ \ some_text / input_file