mvb

mvb is a shell script written for BSD and Linux users, to batch rename files.
Download

mvb Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Steve Doonan
  • Publisher web site:
  • http://www.xscd.com/pub/mvb/

mvb Tags


mvb Description

mvb is a shell script written for BSD and Linux users, to batch rename files. mvb is a shell script written for BSD and Linux users, to "batch rename" files (change the name of many files at once) in the current working directory.mvb is used from the command line of your current shell and invokes the Bourne shell (sh) by default, or the BASH shell (by editing the first line of the script), to execute the script.It is ideal for users who have directories of images or other files that are related by theme.Installation:To install the script, after un-gzipping and untarringmvb.tgz (the actual filename will include the versionnumber, like this: mvb_1.7.2.tgz):gunzip mvb.tgztar -xvf mvb.taror both at once with:tar -xvzf mvb.tgzchange to the mvb directory and copy mvb to one of thedirectories of executable files listed in your $PATHvariable:echo $PATHcp mvb /usr/local/bin (or wherever you wish)Change to the directory you copied mvb to, and change itspermissions so that it is executable. For example:chmod a+x mvbWhen you are ready to use the script, change to the directorywhose files you would like to rename, then type the command mvb,followed by a space, then any options you would like to specify(type: mvb -h for help) followed by a space, then the new nameyou would like the files in that directory to have, then typeRETURN or ENTER and follow the prompts, if any.NOTE: The first time you use mvb, you may wish to read itsembedded help file which explains how the script works and howto customize its behavior. You can do this at any time bytyping:mvb -hFILE PERMISSIONS: If you would like for this script NOT tochange the permissions for each file in the directory, inaddition to renaming them, comment out (add an initial #) theline near the end that reads: chmod 664 "$I"so that it reads:# chmod 664 "$I"or change the permissions indicated in that commandto whatever you prefer.--> refer to the man page:man 1 chmodIf, on your computer, sh is not located in /bin/sh, or if youwould like to change the script so that it uses BASH instead,open mvb using a TEXT editor (not a word processor) and changethe path on the first line of the script to point to thelocation on your computer of either the Bourne shell (sh) or theBASH shell (bash). At your shell's command prompt, type:which shorwhich bashto see where sh or bash is installed on your machine. Be sureto retain the #! on the first line: just put the correct pathimmediately after it, like:#!/usr/local/bin/bash


mvb Related Software