LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-02-2021, 07:23 PM   #1
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 231

Rep: Reputation: 45
How to remove files like "“¾÷kĘ×\215\r"


Hello All , Having done a tad bit of googling and manpage searches , I am unable to identify the first char in the list in order to remove the file

Doing an ls shows those char.s .

Need to at least be able to create the first char .

And fyi ALL of the char.s are not ascii nor from what little I can find utf8 either .

Tnx , For all insights . JimL
 
Old 08-02-2021, 07:30 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,658
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, When I have to, or want to remove files names similar to those,

I copy the file name with the mouse and then paste it into a terminal like "konsole" like

...using your example, but you should include the entire directory address!

remove file using quotes.
Code:
rm -rf "“¾÷kĘ×\215\r"
This usually works, but I haven't seen a 3/4 symbol.

I hope this helps you.
 
1 members found this post helpful.
Old 08-02-2021, 08:25 PM   #3
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 324

Rep: Reputation: Disabled
Since college when in this position I fire up emacs and delete it in a dired buffer. But there must be a more satisfying unix solution in a FAQ somewhere, or at least it always was one in the 90s. Well, doesn't seem to be in the usenet Slackware group faq or the website faq, but there are resources around. rm has an interactive flag (-i). If you can get the number of files down enough that might not be too bad. Is that a k (kay) in the middle or kappa? rm -i *k* and then say yes when you get to the right one?
 
Old 08-02-2021, 08:31 PM   #4
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 324

Rep: Reputation: Disabled
Hah, I saw some well known question/answer site with a suggestion to find the inode number and delete that. But it appears that rm is deficient and lacks the delete numbered inode flag as an option. And they say GNU programs are profligate with their options.
Code:
rm --inode 3234231
Who wouldn't want that? More fun than russian roulette. I should add it on my LFS partition.

I guess the guy intended the person to write a program to do it. Well, unless there's a common inode deleting utility he had in mind. Maybe something in Slackbuilds, eh?

Last edited by thirdm; 08-02-2021 at 08:35 PM. Reason: not drunk, honest.
 
2 members found this post helpful.
Old 08-02-2021, 08:57 PM   #5
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,699

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
This should do it.
https://www.cyberciti.biz/tips/delet...de-number.html
 
5 members found this post helpful.
Old 08-03-2021, 07:07 AM   #6
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 622

Rep: Reputation: 300Reputation: 300Reputation: 300Reputation: 300
Use MidnightCommander (mc)
 
2 members found this post helpful.
Old 08-03-2021, 07:43 AM   #7
Uncle Lumpy
Member
 
Registered: Feb 2010
Posts: 63

Rep: Reputation: 48
How about:

rm -i *215*

If it successfully picks out the "215" from the expression you're golden.

Lumpy
 
1 members found this post helpful.
Old 08-03-2021, 11:26 AM   #8
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,191

Rep: Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771
Will fslint fix these?
 
Old 08-03-2021, 11:32 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,985

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by Gerard Lally View Post
Will fslint fix these?
What do you mean by that?
 
Old 08-03-2021, 11:56 AM   #10
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
https://www.pixelbeat.org/fslint
 
Old 08-03-2021, 12:09 PM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,985

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by shruggy View Post
I find it more complicated than other solutions.
 
Old 08-04-2021, 12:59 AM   #12
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 231

Original Poster
Rep: Reputation: 45
@Daedra , The URL did contain the proper method to delete files with the control or '\xxx' escaped chars.
Thank You all who responded .

Code:
$ find . -inum 6033230 -exec rm -i {} ;
find: missing argument to `-exec'
The html conversion dropped the '\' from before the ';' , Thus the error .

There were two of them that have been lingering since well 2016 or so .

Code:
$ find . -inum 6033230 -exec rm -i {} \;
rm: remove regular empty file './'$'\264\276\367''k'$'\306\327\215\r'? y

$ find . -inum 6033575 -exec rm -i {} \;
rm: remove regular empty file './'$'\025\371'? y
 
Old 08-04-2021, 06:53 AM   #13
claustrofiel
LQ Newbie
 
Registered: Jan 2021
Distribution: Slackware64-15.0
Posts: 6

Rep: Reputation: Disabled
A final possibility: use a compose key and just type the start of the filename. Also, don't forget using \ as escape character.

The following command will set the right alt to be the compose key:

setxkbmap -option compose:ralt

I created a file with that name using:

touch \"\<compose>''<compose>14<compose>:-k<compose>AE<compose>xx\\215\\r\"

Last edited by claustrofiel; 08-04-2021 at 06:56 AM.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount 10.118.215.150 to NFS server in linux boby.kumar Linux - Server 1 04-29-2013 09:38 AM
LXer: Softpedia Linux Weekly, Issue 215 LXer Syndicated Linux News 0 09-02-2012 12:51 AM
/sbin/adsl-start: line 215: 5543 Terminated $CONNECT "$@" >/dev/null 2> ciberrust Linux - Hardware 3 03-27-2005 10:38 AM
ATI 3D rage ll + 215 GTB (mach64 GTB) ricdave VectorLinux 3 02-04-2004 06:56 PM
kernel 2.215 to 2.41 lslinux31415 Linux - General 4 02-06-2001 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration