<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Re: [tclug-list] Renaming a folder with a different character set</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Is there already a file named 1 in the parent directory?<BR>
<BR>
<BR>
-----<BR>
Sent from my wireless device<BR>
<BR>
-----Original Message-----<BR>
From: Jordan Peacock <hewhocutsdown@gmail.com><BR>
To: Stuart, Joseph<BR>
CC: tclug-list@mn-linux.org <tclug-list@mn-linux.org><BR>
Sent: Fri Mar 21 20:05:12 2008<BR>
Subject: Re: [tclug-list] Renaming a folder with a different character set<BR>
<BR>
I don't think it realizes it is a folder:<BR>
<BR>
root@jubuntu:/media/Jrobo/03 - Tagged, Listened, Unsorted# for i in ./*; do mv $i 1; done<BR>
mv: target `1' is not a directory<BR>
<BR>
I'm assuming you meant run that from the parent directory of the mystery directory.<BR>
<BR>
<BR>
On Fri, Mar 21, 2008 at 8:01 PM, Stuart, Joseph <Joseph.Stuart@capella.edu> wrote:<BR>
<BR>
<BR>
        Is this the only folder in the dir? If so<BR>
        Cd to dir<BR>
       <BR>
        for i in ./*; do mv $i 1; done<BR>
       <BR>
       <BR>
       <BR>
       <BR>
        -----<BR>
        Sent from my wireless device<BR>
<BR>
<BR>
        -----Original Message-----<BR>
        From: tclug-list-bounces@mn-linux.org <tclug-list-bounces@mn-linux.org><BR>
        To: Dean E <dean@ripperd.com><BR>
        CC: Twin Cities Linux User's Group <tclug-list@mn-linux.org><BR>
        Sent: Fri Mar 21 19:53:30 2008<BR>
        Subject: Re: [tclug-list] Renaming a folder with a different character set<BR>
       <BR>
        Sorry, not a programmer, all I can muster is pseudo-code myself! *laughs*<BR>
       <BR>
        Got a shell script?<BR>
       <BR>
       <BR>
        On Fri, Mar 21, 2008 at 6:54 PM, Dean E <dean@ripperd.com> wrote:<BR>
       <BR>
       <BR>
                And if tab-completion can't grab it yet, try something like this pseudo<BR>
                code in C or perl:<BR>
              <BR>
                int i=1<BR>
                for each $folder in $currentworkingdir{<BR>
                       rename $folder $i<BR>
                       i++<BR>
                       }<BR>
              <BR>
                I think that will grab them without ever knowing their original names,<BR>
                and rename the folders to 1,2,3,4, etc.<BR>
              <BR>
       <BR>
       <BR>
       <BR>
                Elvedin Trnjanin wrote:<BR>
                > Open up command line (terminal) and change directory to where that<BR>
                > directory or file is located. Type in "mv 2006***press tab button<BR>
                > here*** newname" where ***press tab button here*** means you actually<BR>
                > press the tab button (once or twice) for tab name completion.<BR>
                ><BR>
                > Jordan Peacock wrote:<BR>
                >> I'm not 100% sure how this folder arrived on my doorstep, but I'm<BR>
                >> having some problems with it. As you can see in the screenshot, the<BR>
                >> name is pretty bizarre, and once I click on the folder (i know it's<BR>
                >> supposed to be a folder) it disappears. Attempting to move it or<BR>
                >> rename it using the command line have failed so far.<BR>
                >><BR>
                >> Any ideas? There are files inside that folder that I need.<BR>
                >><BR>
                >> Thank you<BR>
                >><BR>
                >> --<BR>
                >> Jordan Peacock<BR>
                >> hewhocutsdown@gmail.com <<A HREF="mailto:hewhocutsdown@gmail.com">mailto:hewhocutsdown@gmail.com</A>><BR>
                >> hewhocutsdown.blogspot.com <<A HREF="http://hewhocutsdown.blogspot.com">http://hewhocutsdown.blogspot.com</A>><BR>
                >> ------------------------------------------------------------------------<BR>
                ><BR>
                ><BR>
              <BR>
                > _______________________________________________<BR>
                > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<BR>
                > tclug-list@mn-linux.org<BR>
                > <A HREF="http://mailman.mn-linux.org/mailman/listinfo/tclug-list">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</A><BR>
              <BR>
              <BR>
                _______________________________________________<BR>
                TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<BR>
                tclug-list@mn-linux.org<BR>
                <A HREF="http://mailman.mn-linux.org/mailman/listinfo/tclug-list">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</A><BR>
              <BR>
       <BR>
       <BR>
       <BR>
       <BR>
        --<BR>
        Jordan Peacock<BR>
        hewhocutsdown@gmail.com<BR>
        hewhocutsdown.blogspot.com<BR>
       <BR>
       <BR>
<BR>
<BR>
<BR>
--<BR>
Jordan Peacock<BR>
hewhocutsdown@gmail.com<BR>
hewhocutsdown.blogspot.com<BR>
</FONT>
</P>
</BODY>
</HTML>