Tip #496 Remove empty directories
Remove all empty directories within the current directoryRead more »
Tip #468 Moved Trac and Subversion repositories to another machine/direct
CASE: You've relocated Subversion and Trac repositories to another machine/directories. You don't want to edit n+1 trac.ini files.You have for example:
/repos/svn-myprojects/my-first-project
/repos/trac-myprojects/my-first-project
/repos/svn-myprojects/my-second-project
/repos/trac-myprojects/my-second-project
...etc...
Change ALL trac.ini repository_dir settings:
trac-mass-repodir-edit.sh:
Read more »
Tip #363 Finding log files X number of days old and deleteing them.
This is a script that I recently wrote to find the logs of my IDP that were over 90 days old and delete them.The script is pretty much self explanatory.
Read more »
Tip #358 Random mass-rename
Assign random names to all files in a folder (including subfolders!):Read more »
- TAGS:
- find
Tip #307 Delete old files
Use find by time to delete files more than x days old. For example the command below will delete files more than one day old:find . -mtime +1 -exec rm {} \; Read more »
Tip #300 Find and replace on specific files
Selective content replace on files. For example to replace '<?' with '<?php' in all PHP files:Read more »
Tip #232 Deleting difficult filenames
To delete a file who's file name is a pain to define (eg. ^H^H^H) find it's inode number with the command "ls -il". Use the line below to find and delete the file.Read more »
Tip #231 Rename many files using find and perl
Rename a lot of files at once: Read more »alias aptitude at awk bash bc cal cat cd colrm comm cp csh curl cut date dd df dialog diff dirname dpkg du fc find fuser grep gs gzip history iconv kill ksh last less ln ls lsof lynx m4 md5sum mkdir mkfifo mkisofs mv mysql nc netstat openssl OSX perl ping popd ps pushd python read redirection rm scp screen sed sort ssh stat sudo svn tail tar tee test top tr uniq vim wc wget xargs