DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th August 2016
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 288
Question Any shell script to remove the files...

... seen that are "extra" in the .jpg attatched here? File listings too long... "extra" files too random within the file list...
Attached Images
File Type: jpg remove_files.jpg (17.2 KB, 52 views)
__________________
FreeBSD 12.0-CURRENT
Reply With Quote
  #2   (View Single Post)  
Old 7th August 2016
ibara's Avatar
ibara ibara is offline
WR Slowest SNOBOL4 laptop
 
Join Date: Jan 2014
Posts: 514
Default

I'm not really sure what you're asking. Which files here are extra? Which ones do you want to delete? Why can't you just run rm on them?
Reply With Quote
  #3   (View Single Post)  
Old 8th August 2016
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 288
Default

/usr/local/bin, for example, one paginates 500 screens and two of them have the weird files with an extra mixture of letters-numbers as suffixes, after I have paginated down 100 of the 500 screens to check. I could run rm on them, but they recur and I don't have the time to do it every so often. Just wondering if there was a "smart" regex to check upon suffix and put it in a shell script. So it is
a question of automation.
In the jpg above, two g* ports have suffixes that are wrong and the one man3 entry near the bottom, a total of three.
Reply With Quote
Reply

Tags
trivia

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
doing without X .. what files to safely remove ? daemonfowl OpenBSD General 17 22nd August 2012 12:07 AM
ask for a shell script Simon Programming 5 27th April 2010 01:07 AM
shell script with zenity bsdnewbie999 OpenBSD General 5 24th April 2009 02:37 AM
Shell Script. bsdnewbie999 Programming 21 15th July 2008 07:54 AM
shell script with input c0mrade Programming 5 13th July 2008 04:33 AM


All times are GMT. The time now is 04:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick