The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
what happened to admintool? mndavies SUN Solaris 2 05-12-2008 07:31 AM
What happened to mkisofs ? Bobby UNIX for Dummies Questions & Answers 0 10-26-2007 03:37 AM
What happened with AWK? endeavour1985 Shell Programming and Scripting 3 02-21-2005 03:57 PM
what happened to ygor..?? moxxx68 What's on Your Mind? 2 10-25-2004 01:10 AM
what happened? cw1972 Post Here to Contact Site Administrators and Moderators 14 10-02-2003 06:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-25-2008
Registered User
 

Join Date: Nov 2007
Posts: 20
What Happened :(

Hello,

I have created a dosrename script and it was working fine unitl today. I can't think what i have changed (don't think i have to be honest). The error is when i run the script it says the file i am trying to rename does not exist when it blatently does.
Or is it a typo when i run the script?

Here is what i type:

myscript q.* l.*

I have three files q1 q2 q3 and when i did this yesterday it would change them all to l1 l2 l3 but now it says

mv: cannot stat `q.*': No such file or directory

If this is not a typo and you need to see my script i can post it.

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 04-25-2008
Registered User
 

Join Date: Sep 2006
Location: Mysore, India
Posts: 160
Is it q.* or q*?

Have you tried this?
Code:
myscript q* l*
Reply With Quote
  #3  
Old 04-25-2008
Registered User
 

Join Date: Nov 2007
Posts: 20
Yes i have tried this already. This does not give the error however does not rename the file where as yesterday when i did the
myscript q.* l.*
it would change the filename
Reply With Quote
  #4  
Old 04-25-2008
Registered User
 

Join Date: Sep 2006
Location: Mysore, India
Posts: 160
Would you mind posting the script myscript? May be we can help after seeing the script.
Reply With Quote
  #5  
Old 04-25-2008
Registered User
 

Join Date: Nov 2007
Posts: 20
Ha Ha
Silly me it was a typo!
The script is for files with extensions so when i was testing it yesterday i was using

q.1 q.2 q.3

not

q1 q2 q3 which has no file extensions so would not work with my script lol
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0