👤
Home Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

changing filename extension

👤 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

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
[BASH] Getting a filename its extension sea Shell Programming and Scripting 7 05-07-2015 04:58 AM
Get latest filename without extension sumang24 Shell Programming and Scripting 7 12-11-2012 02:38 PM
removing the filename extension daflore Shell Programming and Scripting 5 03-03-2011 04:43 PM
Getting filename with entire path without extension amicableperson Shell Programming and Scripting 3 01-16-2011 08:13 PM
cut filename extension Essbaumer Shell Programming and Scripting 4 07-29-2010 05:18 AM
Changing file extension jaysean UNIX for Dummies Questions & Answers 4 07-16-2010 03:31 AM
changing file extension spidydude UNIX for Dummies Questions & Answers 6 02-17-2009 02:21 AM
Changing the extension of the file mazhar803 UNIX for Dummies Questions & Answers 4 08-29-2008 09:20 AM
Changing extension mohan705 Shell Programming and Scripting 4 06-30-2007 01:06 PM
separating filename and extension lucaspewkas Shell Programming and Scripting 2 04-06-2007 07:07 AM


All times are GMT -4. The time now is 08:02 AM.

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