Linux file single rename generally use mv command, set weight name many people write a simple script, but in fact Linux's rename command can easily achieve the vast majority of heavy Name the
task. The result of man rename is as follows:
NAME
rename - Rename files
SYNOPSIS
rename from to file...
DESCRIPTION< Br>
rename will rename the specified files by replacing the first occurrence of from their name by to.
For example, given the files foo1, ..., foo9, foo10, ..., Foo278, the commands
rename foo foo0 foo?
rename foo foo0 foo??
will turn them into foo001, ..., foo009, foo010, ... , foo278.
And
rename .htm .html *.htm
will fix the extension of your html files.
For example, I have three files :
hs_ok_all_200911.txt
hs_ok_all_a.txt
hs_ok_all_b.txt
I need to change all hs_ok_all to hs
Use
rename hs_ok_all hs hs_ok_all_*
.
So the first parameter of rename is the part to be changed, the second parameter is the changed result, and the third parameter is the file to be changed (including wildcard)
First, the installation of VirtualBox and expansion package installation steps is too simple, and wi
1. In STM32, there are five clock sources, HSI, HSE, LSI, LSE, PLL. 1, HSI is a high-speed internal
Understanding the difference between common mode and differential mode signals is critical to unders
The Linux command line is useful, efficient, and fun, but sometimes dangerous, especially if you are
Varnish purges cache cleanup tutorial
Linux file search technology Daquan
Linux will unify the rivers and lakes
Linux restart command reboot using tutorial
Linux network can not start to solve
Back up files and directories and transfer backup files to windows scripts
Common svn commands under Linux command line
The basic concept of Linux server cluster
What misuse in Windows will damage the hard disk
Solve the windows 7 sound card driver can not be installed or failed to install
Teach you to identify the authenticity of hidden system files
Sogou browser open web page no sound solution
Restore thumbnail function items in Windows system
Implement Outlook and Foxmail mail mutual guidance
Win8 system uses bearer network to share wireless to realize mobile Internet access