Is this the only folder in the dir? If so
Cd to dir

for i in ./*; do mv $i 1; done




-----
Sent from my wireless device

-----Original Message-----
From: tclug-list-bounces at mn-linux.org <tclug-list-bounces at mn-linux.org>
To: Dean E <dean at ripperd.com>
CC: Twin Cities Linux User's Group <tclug-list at mn-linux.org>
Sent: Fri Mar 21 19:53:30 2008
Subject: Re: [tclug-list] Renaming a folder with a different character set

Sorry, not a programmer, all I can muster is pseudo-code myself! *laughs*

Got a shell script?


On Fri, Mar 21, 2008 at 6:54 PM, Dean E <dean at ripperd.com> wrote:


	And if tab-completion can't grab it yet, try something like this pseudo
	code in C or perl:
	
	int i=1
	for each $folder in $currentworkingdir{
	       rename $folder $i
	       i++
	       }
	
	I think that will grab them without ever knowing their original names,
	and rename the folders to 1,2,3,4, etc.
	



	Elvedin Trnjanin wrote:
	> Open up command line (terminal) and change directory to where that
	> directory or file is located. Type in "mv 2006***press tab button
	> here*** newname" where ***press tab button here*** means you actually
	> press the tab button (once or twice) for tab name completion.
	>
	> Jordan Peacock wrote:
	>> I'm not 100% sure how this folder arrived on my doorstep, but I'm
	>> having some problems with it. As you can see in the screenshot, the
	>> name is pretty bizarre, and once I click on the folder (i know it's
	>> supposed to be a folder) it disappears. Attempting to move it or
	>> rename it using the command line have failed so far.
	>>
	>> Any ideas? There are files inside that folder that I need.
	>>
	>> Thank you
	>>
	>> --
	>> Jordan Peacock
	>> hewhocutsdown at gmail.com <mailto:hewhocutsdown at gmail.com>
	>> hewhocutsdown.blogspot.com <http://hewhocutsdown.blogspot.com>
	>> ------------------------------------------------------------------------
	>
	>
	
	> _______________________________________________
	> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
	> tclug-list at mn-linux.org
	> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
	
	
	_______________________________________________
	TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
	tclug-list at mn-linux.org
	http://mailman.mn-linux.org/mailman/listinfo/tclug-list
	




-- 
Jordan Peacock
hewhocutsdown at gmail.com
hewhocutsdown.blogspot.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20080321/be588253/attachment.htm