changing filename extension

Tags
extension, file, shell scripts

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 01-24-2009
changing filename extension

Hi All,
i need to change the filename extension. For simplicity, we can assume that the extension after '.' is 3 characters only... but the filenames can vary.

eg. changing from abc.doc to abc.dxs

can i have a oneline command to achieve this
# 2  
Old 01-24-2009
Give it a shot below:
mv *.doc *.dxs
# 3  
Old 01-24-2009
Funny...
I dont want to move from .doc to .dxs.
Actually .dxs will be the compiled version of .doc... so i am writing a script which will compile all .docs (for eg) and move all the created .dxs's (i.e, created after compilation) to another folder.
# 4  
Old 01-24-2009
So you could pointed to the format of file.
Login to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Changing file extension names anaigini45 Debian 1 07-17-2017 03:47 AM
[BASH] Getting a filename its extension sea Shell Programming and Scripting 7 05-07-2015 05:58 AM
Get latest filename without extension sumang24 Shell Programming and Scripting 7 12-11-2012 03:38 PM
Rename all files (filename with spaces) to different extension mac4rfree Shell Programming and Scripting 1 06-13-2012 04:05 AM
Script to add extension to filename repiv Shell Programming and Scripting 2 07-22-2011 06:30 PM
removing the filename extension daflore Shell Programming and Scripting 5 03-03-2011 05:43 PM
Getting filename with entire path without extension amicableperson Shell Programming and Scripting 3 01-16-2011 09:13 PM
cut filename extension Essbaumer Shell Programming and Scripting 4 07-29-2010 06:18 AM
Changing file extension jaysean UNIX for Dummies Questions & Answers 4 07-16-2010 04:31 AM
script takes the whole filename instead of just extension wolverine999 UNIX for Dummies Questions & Answers 1 05-20-2009 03:49 PM
changing file extension spidydude UNIX for Dummies Questions & Answers 6 02-17-2009 03:21 AM
Changing the extension of the file mazhar803 UNIX for Dummies Questions & Answers 4 08-29-2008 10:20 AM
Changing extension mohan705 Shell Programming and Scripting 4 06-30-2007 02:06 PM
separating filename and extension lucaspewkas Shell Programming and Scripting 2 04-06-2007 08:07 AM
filename extension check - regular expression devs Shell Programming and Scripting 4 03-02-2007 03:01 PM
All times are GMT -4. The time now is 08:11 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?