Skip to content

Latest commit

 

History

History
563 lines (375 loc) · 17.9 KB

mv_statistics.md

File metadata and controls

563 lines (375 loc) · 17.9 KB
layout title tags
manual
mv - Statistics of command combinations using semicolon
statistic

Before

The commands before mv: Execute the given command before mv.

Command percentage
w 17%
find 11%
name 11%
ls 9%
sed 7%
echo 4%
exec 2%
awk 2%
jp 2%
mkdir 2%
su 2%
cat 2%
grep 2%
cd 1%
rm 1%
cp 1%
df 1%
ip 1%
xargs 1%

After

The commands after mv: Execute the given command after mv.

Command Percentage
echo 21%
rm 15%
cd 12%
nc 9%
ls 9%
top 3%
w 3%
mv 3%
cat 3%
reboot 3%
vi 3%
name 3%
ss 3%
rmdir 3%
su 3%

Related Scenarios

Below are the scenarios for all command combinations above.

The description in the table is referenced from and can be used to search the one-line-command or the scripts in the website of CommandLineFu.

Execute w before mv

  • recursively change file name from uppercase to lowercase (or viceversa)
  • Numeric zero padding file rename
  • like rm, but keep backups of files and dirs in ~/.rm
  • convert all WAVs from any format (MS ADPCM) to PCM
  • Get a url, preview it, and save as text - with prompts
  • Batch rename of files (names from file)
  • Buffer in order to avoir mistakes with redirections that empty your files
  • rename / move Uppercase filenames to lowercase filenames current directory
  • Rename files with unique, randomly generated file names
  • Replace all the spaces in all the filenames of the current directory and including directories with underscores.
  • rename a file to its md5sum
  • Replace spaces in filenames with underscorees
  • Numeric zero padding file rename
  • Move files matching a certain pattern to another folder
  • Download all default installed apk files from your android.
  • Re-encode all flac files below
  • Removing Prefix from File name
  • Adding Prefix to File name
  • Picture Renamer
  • Batch remove protection from all pdf files in a directory
  • Rename all the files in the current directory into their sha1sum
  • Update file with patch
  • Download all files under http://codeigniter.com/user_guide/ to the current directory
  • find pictures and renames them appending the containing folder name
  • rename all files with "?" char in name
  • rename all dirs with "?" char in name
  • Performance tip: compress /usr/
  • Prepend string to filename
  • Replace spaces in filename
  • Tracklist reaplace backspace to '-'
  • recursively change file name from uppercase to lowercase (or viceversa)
  • recursively change file name extensions
  • make a list of movies(.m3u).
  • Replace "space" char with "dot" char in current directory file names
  • Batch JPEG rename to date using ImageMagick
  • Take a screenshot of the window the user clicks on and name the file the same as the window title
  • Git autocomplete
  • Insert a line at the top of a text file without sed or awk or bash loops
  • number files in directory according to their modification time
  • remove all spaces from all files in current folder
  • Renames all files in the current directory such that the new file contains no space characters.

Execute find before mv

  • recursively change file name from uppercase to lowercase (or viceversa)
  • convert all WAVs from any format (MS ADPCM) to PCM
  • Rename all files in lower case
  • Call svn mv recursively to rename the C prefix from class names
  • Recursive replace of directory and file names in the current directory.
  • Convert encoding from cp1252 (MS Windows) to UTF-8 on source code files
  • Compile all .less files to .css
  • Move files matching a certain pattern to another folder
  • Converts Character Set of Files in a Folder
  • Re-encode all flac files below
  • Append html-extension to all files in a directory structure that contains html-code.
  • Backup files older than 1 day on /home/dir, gzip them, moving old file to a dated file.
  • Move files older than 30 days in current folder to "old" folder
  • Massive rename filenames
  • Rename VM directory and files on ESXi
  • recursively change file name from uppercase to lowercase (or viceversa)
  • Rename all the files in the current directory into their sha1sum
  • rename all files with "?" char in name
  • rename all dirs with "?" char in name
  • Fixing maven POM messed up by a broken release.
  • recursively change file name from uppercase to lowercase (or viceversa)
  • recursively change file name extensions
  • make a list of movies(.m3u).
  • Remove spaces from filenames - through a whole directory tree.
  • replace strings in file names
  • Renames all files in the current directory such that the new file contains no space characters.
  • Manage "legacy" service run control links

Execute name before mv

  • recursively change file name from uppercase to lowercase (or viceversa)
  • Search and replace in multiple files and save them with the same names - quickly and effectively!
  • convert all WAVs from any format (MS ADPCM) to PCM
  • Get a url, preview it, and save as text - with prompts
  • Buffer in order to avoir mistakes with redirections that empty your files
  • Recursive replace of directory and file names in the current directory.
  • rename / move Uppercase filenames to lowercase filenames current directory
  • Unaccent an entire directory tree with files.
  • Convert encoding from cp1252 (MS Windows) to UTF-8 on source code files
  • Re-encode all flac files below
  • move all the .bak backup copies to their original names (rename files by stripping the extension)
  • Replace spaces with '_' in filenames
  • Massive rename filenames
  • Rename VM directory and files on ESXi
  • Mass rename files in git
  • find pictures and renames them appending the containing folder name
  • rename all files with "?" char in name
  • rename all dirs with "?" char in name
  • Fixing maven POM messed up by a broken release.
  • Tracklist reaplace backspace to '-'
  • recursively change file name extensions
  • Remove spaces from filenames - through a whole directory tree.
  • do mvn clean in subdirs to free disk space
  • replace strings in file names
  • Renames all files in the current directory such that the new file contains no space characters.
  • Manage "legacy" service run control links

Execute ls before mv

  • Numeric zero padding file rename
  • bulk rename files with sed, one-liner
  • bulk rename files with sed, one-liner
  • Search and replace in multiple files and save them with the same names - quickly and effectively!
  • Move lots files with AWK
  • Hide files and folders on GNOME Desktop.
  • Batch rename of files (names from file)
  • Remove an unnecessary suffix from a file name for all files in a directory
  • Replace spaces in filenames with underscorees
  • Compile all .less files to .css
  • Increment the filename of png in a given directory by one
  • Mass rename files in git
  • Change password in list of xml files with for and sed
  • Prepend string to filename
  • Replace spaces in filename
  • Command to rename multiple file in one go
  • while series of video and subtitles have unmatched file names, rename subtitles the same as video files.
  • Replace "space" char with "dot" char in current directory file names
  • Insert a date before the suffix of all the json files in a directory
  • number files in directory according to their modification time
  • remove all spaces from all files in current folder
  • rename multiple files with different name, eg converting all txt to csv

Execute sed before mv

  • bulk rename files with sed, one-liner
  • bulk rename files with sed, one-liner
  • Replace all the spaces in all the filenames of the current directory and including directories with underscores.
  • defragment files
  • rename a file to its md5sum
  • Compile all .less files to .css
  • Append html-extension to all files in a directory structure that contains html-code.
  • File rename with regexp
  • Rename all the files in the current directory into their sha1sum
  • delete all leading whitespace from each line in file
  • delete all trailing whitespace from each line in file
  • Fixing maven POM messed up by a broken release.
  • Batch JPEG rename to date using ImageMagick
  • Remove lines with matched string
  • a find and replace within text-based files, for batch text replacement, not using perl
  • rename multiple files with different name, eg converting all txt to csv
  • Manage "legacy" service run control links

Execute echo before mv

  • recursively change file name from uppercase to lowercase (or viceversa)
  • Move all epub keyword containing files to Epub folder
  • Get a url, preview it, and save as text - with prompts
  • rename / move Uppercase filenames to lowercase filenames current directory
  • Unaccent an entire directory tree with files.
  • Replace all the spaces in all the filenames of the current directory and including directories with underscores.
  • File rename with regexp
  • move all the .bak backup copies to their original names (rename files by stripping the extension)
  • Tracklist reaplace backspace to '-'
  • Insert a line at the top of a text file without sed or awk or bash loops
  • Manage "legacy" service run control links

Execute exec before mv

  • recursively change file name from uppercase to lowercase (or viceversa)
  • Convert encoding from cp1252 (MS Windows) to UTF-8 on source code files
  • Backup files older than 1 day on /home/dir, gzip them, moving old file to a dated file.
  • Fixing maven POM messed up by a broken release.
  • Remove spaces from filenames - through a whole directory tree.
  • Manage "legacy" service run control links

Execute awk before mv

  • Numeric zero padding file rename
  • Batch rename of files (names from file)
  • Rename files with unique, randomly generated file names
  • Download all default installed apk files from your android.
  • Picture Renamer
  • Batch JPEG rename to date using ImageMagick

Execute jp before mv

  • Numeric zero padding file rename
  • Rename all (jpg) files written as 3 number in 4 numbers.
  • rename files according to date created
  • Picture Renamer
  • Batch rename and number files

Execute mkdir before mv

  • like rm, but keep backups of files and dirs in ~/.rm
  • Move all epub keyword containing files to Epub folder
  • Organize a TV-Series season
  • Reorder file with max 100 file per folder
  • make 100 directories with leading zero, 001...100, using bash3.X
  • Create subdirectory and move files into it

Execute su before mv

  • Rename all subtitles files with the same name of mp4 files in same folder
  • rename a file to its md5sum
  • Rename all the files in the current directory into their sha1sum
  • Filenames ROT13
  • Rename all files in a directory to the md5 hash
  • Create subdirectory and move files into it
  • Manage "legacy" service run control links

Execute cat before mv

  • Add temporary entry to authorized_keys
  • watch iptables counters
  • Fixing maven POM messed up by a broken release.
  • Insert a line at the top of a text file without sed or awk or bash loops
  • a find and replace within text-based files, for batch text replacement, not using perl

Execute grep before mv

  • Move files matching a certain pattern to another folder
  • Append html-extension to all files in a directory structure that contains html-code.
  • Picture Renamer
  • Mass rename files in git
  • Batch JPEG rename to date using ImageMagick

Execute cd before mv

  • recursively change file name from uppercase to lowercase (or viceversa)
  • Hide files and folders on GNOME Desktop.
  • Remove spaces from filenames - through a whole directory tree.
  • do mvn clean in subdirs to free disk space

Execute rm before mv

  • like rm, but keep backups of files and dirs in ~/.rm
  • Convert all the symbolic links in $PWD to copies of the referenced files
  • Convert a bunch of HTML files from ISO-8859-1 to UTF-8 file encoding in a folder and all sub-folders
  • Rezip a bunch of files

Execute cp before mv

  • Call svn mv recursively to rename the C prefix from class names
  • Converts Character Set of Files in a Folder
  • Overwrite local files from copies in a flat directory, even if they're in a different directory structure

Execute df before mv

  • Remove password from any pdf in current or sub directories
  • Adding Prefix to File name
  • Batch remove protection from all pdf files in a directory

Execute ip before mv

  • Remove an unnecessary suffix from a file name for all files in a directory
  • Unpack magnatune flac album and move artwork into album dir
  • Backup files older than 1 day on /home/dir, gzip them, moving old file to a dated file.
  • Function that swaps the filenames of two given files.

Execute xargs before mv

  • Compile all .less files to .css
  • Converts Character Set of Files in a Folder
  • Append html-extension to all files in a directory structure that contains html-code.
  • Rename all the files in the current directory into their sha1sum

Execute pwd before mv

  • like rm, but keep backups of files and dirs in ~/.rm

Execute alias before mv

  • like rm, but keep backups of files and dirs in ~/.rm

Execute touch before mv

  • find files between specific date/times and move them to another folder
  • Get a url, preview it, and save as text - with prompts

Execute last before mv

  • find files between specific date/times and move them to another folder

Execute top before mv

  • Hide files and folders on GNOME Desktop.

Execute diff before mv

  • watch iptables counters

Execute mv before mv

  • defragment files

Execute less before mv

  • Compile all .less files to .css

Execute ss before mv

  • Compile all .less files to .css
  • Batch remove protection from all pdf files in a directory

Execute zip before mv

  • Unpack magnatune flac album and move artwork into album dir
  • Backup files older than 1 day on /home/dir, gzip them, moving old file to a dated file.

Execute gzip before mv

  • Backup files older than 1 day on /home/dir, gzip them, moving old file to a dated file.

Execute uname before mv

  • move all the .bak backup copies to their original names (rename files by stripping the extension)

Execute export before mv

  • Picture Renamer

Execute password before mv

  • Batch remove protection from all pdf files in a directory

Execute date before mv

  • rename all images in folder with prefix of date and time from exif data
  • Batch JPEG rename to date using ImageMagick

Execute nc before mv

  • Expand tabs

Execute wget before mv

Execute id before mv

Execute vi before mv

  • while series of video and subtitles have unmatched file names, rename subtitles the same as video files.
  • Manage "legacy" service run control links

Execute tac before mv

  • Manually rotate logs

Execute ps before mv

  • Git autocomplete

Execute sudo before mv

  • Manage "legacy" service run control links

Execute service before mv

  • Manage "legacy" service run control links

Execute echo after mv

  • Buffer in order to avoir mistakes with redirections that empty your files
  • defragment files
  • remove accents from file name
  • Function that swaps the filenames of two given files.
  • Easily create and share X screen shots (local webserver version)
  • Git autocomplete
  • check4progs(), func to long please refer to description

Execute rm after mv

  • find files between specific date/times and move them to another folder
  • Rename files in a directory in an edited list fashion
  • Unpack magnatune flac album and move artwork into album dir
  • Download all files under http://codeigniter.com/user_guide/ to the current directory
  • move contents of the current directory to the parent directory, then remove current directory.

Execute cd after mv

  • move contents of the current directory to the parent directory, then remove current directory.
  • move contents of the current directory to the parent directory, then remove current directory.
  • Re-encode all flac files below
  • do mvn clean in subdirs to free disk space

Execute nc after mv

  • Auto download Ubuntu 10.04 LTS with super fast zsync
  • Re-encode all flac files below
  • function to fix files starting with =?UTF-8 and ends with ?=

Execute ls after mv

  • Buffer in order to avoir mistakes with redirections that empty your files
  • Rename files in a directory in an edited list fashion
  • Function that swaps the filenames of two given files.

Execute top after mv

  • Auto download Ubuntu 10.04 LTS with super fast zsync

Execute w after mv

  • Buffer in order to avoir mistakes with redirections that empty your files

Execute mv after mv

  • defragment files

Execute cat after mv

  • Re-encode all flac files below

Execute reboot after mv

  • Performance tip: compress /usr/

Execute vi after mv

  • make a list of movies(.m3u).

Execute name after mv

  • remove accents from file name

Execute ss after mv

  • Function that swaps the filenames of two given files.

Execute rmdir after mv

  • move contents of the current directory to the parent directory, then remove current directory.

Execute su after mv

  • Convert embedded spaces in filenames to "_" (underscore)