On Thu, 2010-07-08 at 12:16 -0400, Paul Spicer wrote: > I have a folder of text files with no extension (named 101, 102, 103, > etc...) and I wanted to add an extension of .tab to them. So, in > terminal, I ran 'rename * *.tab *' and file 101 was deleted. Can > anyone tell me why?
Because your command took 101 and made it 102. Go check 102 and it will have the contents of 101. Rename is similar to move, and your wildcards are pickup up the next entry. Why it stops there, not sure, likely matches first two lines, puts line 1 into line 2, 101 -> 102, and job finished. But other files modification times do reflect they have been touched. But not the desired outcome you are seeking. Not sure of the syntax for that, and might have reached the limits on rename. Seems to not handled advanced stuff well, just simple rename. -- William L. Thomson Jr. Obsidian-Studios, Inc. http://www.obsidian-studios.com This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] List archive http://marc.info/?l=jaxlug-list&r=1&w=2 RSS http://www.mail-archive.com/[email protected]/maillist.xml

