LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2008, 09:07 AM   #1
mmahulo
Member
 
Registered: Nov 2008
Posts: 31

Rep: Reputation: 15
Renaming files in a script


Hi all

Please help me with a korn shell script to rename all .text files to .txt in a specific directory only. e.g. Results.docs, and Test.docs are in the /temp directory and they should be renamed into Results.doc and Test.doc both still in the /temp directory.

your assistance will be appreciated. thanks!
 
Old 12-18-2008, 09:10 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Smells like homework to me!

Show us what you have attempted to date. You should re-read or read the LQ rules.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash script for renaming files (all odd) snaggletooth1134 Programming 10 05-01-2012 01:26 AM
Script for renaming files auwolf Linux - Newbie 1 10-03-2006 03:39 AM
Renaming files in a shell script Mike_the_Man Programming 7 04-17-2006 02:56 PM
Another renaming files Perl script STAGED Programming 6 03-04-2006 06:07 AM
renaming files script. xushi Programming 4 10-10-2004 09:06 AM


All times are GMT -5. The time now is 12:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration