Find directories with trailing spaces
// description of your code here
#Find directories with trailing spaces in them.
#Find directories with trailing spaces in them.
find . -type d -iregex '.* '
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
find . -type d -iregex '.* '
<Directory "/Library/MediaWiki/web/images"> # Ignore .htaccess files AllowOverride None # Serve HTML as plaintext, don't execute SHTML AddType text/plain .html .htm .shtml # Don't run arbitrary PHP code. php_admin_flag engine off # If you've other scripting languages, disable them too. </Directory>
md5sum <filename>
find . -name "*.txt" -printf '"%p"\n' | xargs grep some_pattern
find . -name "*.php" -printf '"%p"\n' | xargs grep "http://rst.void.ru" | cut -d: -f1
deepfind () { echo "Searching for $1"; find . -type f -printf '"%p"\n' | xargs grep "$1" | cut -d: -f1;}
mailq F2B9715C0B3 2464 Mon Oct 13 15:29:39 markus.herrmann@example.com (connect to mail.example.com[217.6.113.151]: Connection timed out) torsten.hecke@example.net -- 2 Kbytes in 1 Requests. postcat -q F2B9715C0B3
postsuper -d ALL
date mmddHHMMYYyy so date 121520152005 Dec 15 8:15 2005
ps -alx | grep <string>
kill <PID>
kill -9 <PID>
find . -maxdepth 1 -name '*.jpg' -exec rm {} \;
ls -R
ls -R | grep 'searchterm'
:%s'\(<stuff_to_find>\)'\1<new_stuff>'gc