Category Archives: shell

Bash Samples

* See this post for more examples. Timestamp ts=`date +%m%d%Y` ts2=`date +%H%M%S_%m%d%Y` Find with Permission Denied Filtered Out find . -name "something" -print 2>/dev/null > find.something.file Find String in Type of Files #!/bin/sh if [ $# -lt 2 ]; then … Continue reading

Posted in shell | Comments Off on Bash Samples