Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-01-2004, 03:22 AM   #1
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
recursive delete by wildcard in unix

drwxr-xr-x 164 sample sample 4096 Apr 1 02:47 bigmouthfuls.com
-rw-r--r-- 1 sample sample 25609 Apr 1 05:01 bigmouthfuls.com.html
-rw-r--r-- 1 sample sample 7290 Apr 1 02:27 bigmouthfuls.com.txt
bash-2.05a$ rm *.html$a=474 -r -i bigmouthfuls.com
rm: cannot remove `*.html=474': No such file or directory
rm: descend into directory `bigmouthfuls.com'? y
rm: descend into directory `bigmouthfuls.com/001'? y
rm: remove `bigmouthfuls.com/001/index.html'? n
rm: remove `bigmouthfuls.com/001/logo.jpg'? n
rm: remove `bigmouthfuls.com/001/bmfkirsty-2.wmv'? n
rm: remove `bigmouthfuls.com/001/2.jpg'?
bash-2.05a$ rm "*.html$a=474" -r -i bigmouthfuls.com
rm: cannot remove `*.html=474': No such file or directory
rm: descend into directory `bigmouthfuls.com'?

oki... now I want to remove all the files with .html$a=474 from a directory and it's subdirectories...

i tried rm *.html$a=474 -r -i bigmouthfuls.com and rm "*.html$a=474" -r -i bigmouthfuls.com but it isn't working...

anyone?
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2004, 03:25 AM   #2
Nathan
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 3,108
escape the $ with a \
__________________
"Think about it a little more and you'll agree with me, because you're smart and I'm right."
- Charlie Munger
Nathan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2004, 03:30 AM   #3
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
thanks for the suggestion! the \ kept the file name intact, but it's still trying to delete all the files instead of the ones i want... even when i just put *a=474...

bash-2.05a$ rm "*.html\$a=474" -r -i bigmouthfuls.com
rm: cannot remove `*.html$a=474': No such file or directory
rm: descend into directory `bigmouthfuls.com'? y
rm: descend into directory `bigmouthfuls.com/001'? y
rm: remove `bigmouthfuls.com/001/index.html'? n
rm: remove `bigmouthfuls.com/001/logo.jpg'? n
rm: remove `bigmouthfuls.com/001/bmfkirsty-2.wmv'? n
rm: remove `bigmouthfuls.com/001/2.jpg'?
bash-2.05a$ rm "*a=474" -r -i bigmouthfuls.com
rm: cannot remove `*a=474': No such file or directory
rm: descend into directory `bigmouthfuls.com'? y
rm: descend into directory `bigmouthfuls.com/001'? y
rm: remove `bigmouthfuls.com/001/index.html'? n
rm: remove `bigmouthfuls.com/001/logo.jpg'? n
rm: remove `bigmouthfuls.com/001/bmfkirsty-2.wmv'? n
rm: remove `bigmouthfuls.com/001/2.jpg'?
bash-2.05a$
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2004, 03:52 AM   #4
VideoJ
Confirmed User
 
Join Date: Aug 2002
Location: S. Florida
Posts: 750
find bigmouthfuls.com -name "*html*a=474" -exec rm -i {} ";"

should work. try it with ls instead of rm to check the results first
__________________
Somebody stole my damn signture...
VideoJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2004, 04:05 AM   #5
notjoe
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto, Canada
Posts: 5,599
rm -rf */*html\$=474*

should work
notjoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2004, 04:09 AM   #6
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
Quote:
Originally posted by VideoJ
find bigmouthfuls.com -name "*html*a=474" -exec rm -i {} ";"

should work. try it with ls instead of rm to check the results first
THANK YOU!!!
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2004, 04:10 AM   #7
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
Quote:
Originally posted by notjoe
rm -rf */*html\$=474*

should work
i'll try that on my next batch of files... i'm leeching now... ;)
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.