maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   ._filenames ? Useless? Can they be removed? (https://talk.maemo.org/showthread.php?t=23104)

Valeria 2008-08-24 04:22

Re: ._filenames ? Useless? Can they be removed?
 
Hi, I downloaded emelfm2 from here: http://www.internettablettalk.com/fo...ad.php?t=18462 it is a nice .deb, so just click and install. Good luck.

fatalsaint 2008-08-24 05:12

Re: ._filenames ? Useless? Can they be removed?
 
Just for future note to people.. to delete a file with a space in command line you need to use an escape character (\).. so

Code:

rm -f my\ file.mp3
Also.. if you press tab after typing part of a file name; if it's the only file in the directory that starts that way it will auto-complete the filename for you.. with the escape's where they are needed. So typing "my" and press tab.. will produce the above result.

AstroGuy 2008-08-24 05:30

Re: ._filenames ? Useless? Can they be removed?
 
My way of deleting files like these from a file system is:

rm -i `find ._*`

remove the -i if you don't want to confirm the deletion of each file, just remember there is no 'un'rm

brontide 2008-08-24 12:57

Re: ._filenames ? Useless? Can they be removed?
 
Quote:

Originally Posted by AstroGuy (Post 216896)
My way of deleting files like these from a file system is:

rm -i `find ._*`

remove the -i if you don't want to confirm the deletion of each file, just remember there is no 'un'rm

The problem with this and some of the other methods is they are not "space" friendly. So if you have "._My Document" and "Document" it will match on the first and then rm -i ._My Document where ._My is non-existent and Document will happily delete your other file.

rcull 2008-08-24 19:14

Re: ._filenames ? Useless? Can they be removed?
 
Try this

Code:

~/trial $ ls -a
.        ..        ._my doc  ._mydoc  mydoc

Code:

~/trial $ for f in ._*
> do
> rm "$f"
> done

Code:

~/trial $ ls -a
.      ..    mydoc

rick

brontide 2008-08-24 19:50

Re: ._filenames ? Useless? Can they be removed?
 
or on one line
Code:

for file in ._*; do rm "$file";done

rcull 2008-08-25 19:32

Re: ._filenames ? Useless? Can they be removed?
 
or
ls ._* | while read file;do rm "$file";done

zerojay 2008-08-26 11:59

Re: ._filenames ? Useless? Can they be removed?
 
Quote:

Originally Posted by fatalsaint (Post 216892)
Just for future note to people.. to delete a file with a space in command line you need to use an escape character (\).. so

Code:

rm -f my\ file.mp3
Also.. if you press tab after typing part of a file name; if it's the only file in the directory that starts that way it will auto-complete the filename for you.. with the escape's where they are needed. So typing "my" and press tab.. will produce the above result.

You can also quote the file name: "my file.mp3".

free 2008-08-26 12:25

Re: ._filenames ? Useless? Can they be removed?
 
Quote:

Originally Posted by qwerty12 (Post 216770)
Who is up for editing the busybox's debconfig and adding some options in? I took a look last time using make menuconfig after apt-get source busybox from nokia's sdk repo and it has a lot of find related options disabled.

That would be a good idea yep! :)
Not only for find, for a lot of other things probably..


All times are GMT. The time now is 20:22.

vBulletin® Version 3.8.8