Changes between Version 1 and Version 2 of MaintenanceGuidelinesTips


Ignore:
Timestamp:
09/10/10 13:49:41 (11 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MaintenanceGuidelinesTips

    v1 v2  
     1[[TOC]]
     2= !SysAdmin Tips =
     3
     4== Renaming multiple files ==
     5{{{
     6for i in *.avi; do j=`echo $i | sed 's/find/replace/g'`; mv "$i" "$j"; done
     7}}}
     8
     9{{{
     10for i in *.phtml; do mv $i ${i%.phtml}.php; done
     11}}}
     12
     13== Deleting files matching a pattern ==
     14{{{
     15find opt/Products -name "*.pyc" -exec rm '{}' \;
     16}}}
     17
    118== Sed: Stream Editor ==
    219Search/Replace: