l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2004 May 20 07:38

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Removing Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Removing Files



Then there's only yet one more thing left to do:

  $ mkdir ./tmp
  $ mv ./movies/* ./tmp
  $ cd movies
  $ for i in *; do unlink "$i"; done

Then there's always `debugfs`... I call that "yet another one more thing
left beyond the last previously mentioned things that can be done..." -_-'

-Mark :P


On Thu, 20 May 2004, Daniel Hurt wrote:

> I though at first briliant. But:
>
> # mkdir ./tmp
> # mv ./movies/* ./tmp
> # rm -rf ./movies
> rm: cannot remove directory `movies': Directory not empty
>
> Thanks for the help, I will work on it more in the morning :)
>
> Dan
>
> Mark K. Kim wrote:
> > There's only one thing to do:
> >
> >    $ pwd
> >    /some/path/to/avi/directory
> >    $ cd ..
> >    $ mkdir tmp
> >    $ mv directory/* tmp
> >    $ rm -rf directory
> >
> > -Mark!!!!
> >
> >
> > On Thu, 20 May 2004, Daniel Hurt wrote:
> >
> >
> >>No luck with the mp3 or avi files.  I have included the excuted commands
> >>and the outcomes below.  Thanks for the suggestions though.
> >>
> >>Mark K. Kim wrote:
> >>
> >>>Try:
> >>>
> >>>   1. `rm -i *.avi` (it'll ask you if you wanna delete each file)
> >>
> >>$ rm -i E*.avi
> >>rm: remove regular file `Eddie_Izzard-Dressed_To_Kill.avi'? n
> >>rm: remove regular file `Enemy_Of_The_State.avi'? n
> >>rm: cannot lstat `Evil Dead 3 - Army of Darkness (Director\264s
> >>Cut).avi': No such file or directory
> >>
> >>
> >>
> >>>   2. Removing the file from a graphical program
> >>>      (Konqueror, Nautilus, etc.)
> >>
> >>As stated previously, tried with the gentoo graphical file browser and
> >>did not work.  Tried exporting as suggested by number 3, and the file
> >>still does not show up in the browser.
> >>
> >>
> >>>   3. Try #1 and #2 with charset set to UTF-8
> >>>      (`export LC_ALL=en_US.UTF-8` under BASH)
> >>
> >>$ export LC_ALL=en_US.UTF-8
> >>$ rm -i E*.avi
> >>rm: remove regular file `Eddie_Izzard-Dressed_To_Kill.avi'? n
> >>rm: remove regular file `Enemy_Of_The_State.avi'? n
> >>rm: cannot lstat `Evil Dead 3 - Army of Darkness (Director\264s
> >>Cut).avi': No such file or directory
> >>
> >>
> >>
> >>>-Mark
> >>>
> >>>
> >>>On Wed, 19 May 2004, Daniel Hurt wrote:
> >>>
> >>>
> >>>
> >>>>Ryan wrote:
> >>>>
> >>>>
> >>>>>On Wednesday 19 May 2004 11:26 pm, Daniel Hurt dwhurt-at-ucdavis.edu |lugod|
> >>>>>wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>I have a question regarding deletion of files.  In the conversion of my
> >>>>>>>files from my windows to Linux, I had some files that had special
> >>>>>>>characters in them.  They copied to the Linux file system, but now I
> >>>>>>>cannot access them to modify them.  I was curious about how to go about
> >>>>>>>removing these files:
> >>>>>>>
> >>>>>>>ls: ./Evil Dead 3 - Army of Darkness (Director´s Cut).avi: No such file
> >>>>>>>or directory
> >>>>>
> >>>>>rm 'Evil Dead 3 - Army of Darkness (Director´s Cut).avi'
> >>>>>would work. so would
> >>>>>rm 'Evil\ Dead\ 3\ -\ Army\ of\ Darkness\ Director\´s\ Cut\).avi
> >>>>>
> >>>>>But quoting is usualy easier. Or use tab-compleation... that will escape for
> >>>>>you.
> >>>>
> >>>>Thanks I tried that already :-)  But still not working.  Here are some
> >>>>examples of the commands that I tried.  I even tried installing a GUI
> >>>>file browser to see if it could see the files but no luck there.
> >>>>
> >>>>--- Tab Completion:
> >>>>$ rm Evil\ Dead\ 3\ -\ Army\ of\ Darkness\ \(Director´s\ Cut\).avi
> >>>>rm: cannot remove `Evil Dead 3 - Army of Darkness (Director\264s
> >>>>Cut).avi': No such file or directory
> >>>>
> >>>>--- Different Quote Tests:
> >>>>$ rm 'Evil Dead 3 - Army of Darkness (Director`s Cut).avi'
> >>>>rm: cannot remove `Evil Dead 3 - Army of Darkness (Director`s Cut).avi':
> >>>>No such file or directory
> >>>>
> >>>>$ rm "Evil Dead 3 - Army of Darkness (Director's Cut).avi"
> >>>>rm: cannot remove `Evil Dead 3 - Army of Darkness (Director\'s
> >>>>Cut).avi': No such file or directory
> >>>>
> >>>>$ rm "Evil Dead 3 - Army of Darkness (Director´s Cut).avi"
> >>>>rm: cannot remove `Evil Dead 3 - Army of Darkness (Director\264s
> >>>>Cut).avi': No such file or directory
> >>>>
> >>>>
> >>>>_______________________________________________
> >>>>vox-tech mailing list
> >>>>vox-tech@lists.lugod.org
> >>>>http://lists.lugod.org/mailman/listinfo/vox-tech
> >>>>
> >>>>_______________________________________________
> >>>>vox-tech mailing list
> >>>>vox-tech@lists.lugod.org
> >>>>http://lists.lugod.org/mailman/listinfo/vox-tech
> >>>>
> >>>
> >>>
> >>_______________________________________________
> >>vox-tech mailing list
> >>vox-tech@lists.lugod.org
> >>http://lists.lugod.org/mailman/listinfo/vox-tech
> >>
> >
> >
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>

-- 
Mark K. Kim
AIM: markus kimius
Homepage: http://www.cbreak.org/
Xanga: http://www.xanga.com/vindaci
Friendster: http://www.friendster.com/user.jsp?id=13046
PGP key fingerprint: 7324 BACA 53AD E504 A76E  5167 6822 94F0 F298 5DCE
PGP key available on the homepage
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!