Christina's World

Unix Terminal

Change *.ps to *.eps:

ls *.ps | awk '{print("mv "$1" "$1)}' | sed 's/ps/eps/2'

ls *.ps | awk '{print("mv "$1" "$1)}' | sed 's/ps/eps/2' | /bin/sh


Change all file info in a folder. Change all 'date modified' to the current day and time:

find . -exec touch -t 201411142300 {} \;


 search for a text string in a directory (and all nested files)

grep -lr "s3_dir" * 


how to keep computer from sleeping (ex while transferring files via sftp)

pmset noidle 

Learning Raspberry Pi

Lyx\LATEX insert degrees symbol

1. can define command as: \newcommand{\degree}{$^{\circ}$}

and then just use tex code \degree when you want a degree symbol


2. use tex code $^\circ$

ie $360^\circ$ gives output 360°