Change a word in many files
The below one liner will open all files in its path and change the word 'MOO' in any of the files to the word 'BOO'. find . -type f | xargs /usr/iw-home/iw-perl/bin/iwperl -i -p -e 's/MOO/BOO/g;' This script has only been lightly tested so please make a backup of your files before running this!
Find all files of a type and count the size together
This wonderful little tool written by Richard Aldridge uses 'sed' to group together all the files under a particular folder of a certain type (in the example this is files whose name contains the string 'local' but you could easily change this to look for other groups of files such as '.log' or '.html' files) [...]
Perl Magic One Liners
This page is dedicated to all the quick one line utilities that are useful when managing an Interwoven system or any other system that uses many files. Find all files without metadata of content_type: find . -name '*.xml' -exec /iw-home/iw-perl/bin/iwperl -e '$file=shift;system("/iw-home/bin/iwextattr", -g=> "TeamSite/Metadata/content_type", $file);warn "$filen" if $?' {} ';' >/dev/null Regenerate Recursively find . [...]