LinuxQuestions.org
Help answer threads with 0 replies.
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 10-26-2005, 04:35 PM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 473

Rep: Reputation: 34
man rename help file


I can't come to an understanding regarding how the remane command works when reading the definition from the man file as describe below.

Can anyone explain that's going on here in plain english.

Thanks.

From the man file:

For example, given the files foo1 ..., f009, foo010, foo278, the commands

rename foo foo0 foo?
rename foo foo0 foo??

will turn the above into foo001, ..., foo009, foo010 , ..., foo278

What are the question marks really doing Newbi can't figure this out except maybe the question marks are place holders.

I'm really finding that the man files are very difficult to learn from. Examples are for people already using Linux for a while.

Thanks again.
 
Old 10-26-2005, 05:02 PM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
the question marks are wildcards that match exactly one character. Another example of a wildcard is * matching 0 to any character.
 
  


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
How can i Rename file? Khmer Linux - Newbie 4 10-21-2005 08:09 AM
Rename a dos file - how to? flyboy320 Linux - Newbie 3 07-26-2005 07:13 PM
File rename script jjwl89 Linux - General 1 03-14-2005 06:28 PM
How do I rename a file? Thaidog Linux - Newbie 5 10-10-2003 10:28 PM
How to rename a file? juanb Linux - General 4 03-19-2003 11:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:49 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