Re: Hpodder-and-Torsox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On October 22, 2014, Christopher Chaltain wrote:
> I can't provide as much information as Tim, but wouldn't mv in
> Linux do the same and more than ren in DOS?

The DOS "ren" command actually has some smarts, so you can do
something like

 C:\TEMP> ren *.txt *.htm

and it will rename all the .txt files in the directory with a .htm
extension.  The "mv" command isn't nearly so fancy, especially since
the shell's globbing expands the file-names before "mv" ever gets a
chance to see that you wild-carded them.  Fortunately, the "rename"
command that I mentioned allows for doing this pretty easily:

  bash$ rename 's/txt$/htm/' *.txt

-tim



_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list




[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]