Add Comment
|
Related Links
|
TrackBack
RegExRename.sh (GPL)RegExRename.sh is a Bourne Shell script that will search for a particular regular expression in a file name and replace it with another string. Because RegExRename.sh is written as a command-line script, it can be used in your own custom scripts. RegExRename.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site. UsageRegExRename.sh "srch str" "repl str" "file 1" [ ... "file n" ] Example 1Substituting the "dscn" prefix with "pict" in all jpg files: RegExRename.sh "dscn" "pict" *.jpg Result: dscn0038.jpg -> pict0038.jpg Example 2Changing file name extension from "txt" to "html": RegExRename.sh "txt" "html" *.txt Result: 19980206_0042.txt -> 19980206_0042.html Chieh Cheng
Add Comment
|
Related Links
|
TrackBack
Did your message disappear? Read the Forums FAQ. Add CommentSpam Control | * indicates required field TrackBackTrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites. Send Ping | TrackBack URL | Spam Control No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here. Messages, files, and images copyright by respective owners. |
Products
|
Services
48 Users Online
|
Copyright © 1996 - 2024. All Rights Reserved. |