Changes between Version 1 and Version 2 of MaintenanceGuidelinesTips
- Timestamp:
- 09/10/10 13:49:41 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MaintenanceGuidelinesTips
v1 v2 1 [[TOC]] 2 = !SysAdmin Tips = 3 4 == Renaming multiple files == 5 {{{ 6 for i in *.avi; do j=`echo $i | sed 's/find/replace/g'`; mv "$i" "$j"; done 7 }}} 8 9 {{{ 10 for i in *.phtml; do mv $i ${i%.phtml}.php; done 11 }}} 12 13 == Deleting files matching a pattern == 14 {{{ 15 find opt/Products -name "*.pyc" -exec rm '{}' \; 16 }}} 17 1 18 == Sed: Stream Editor == 2 19 Search/Replace: