Skip to Main Content
xoder (
xoder
) wrote
2004
-
02
-
26
11:12 pm
RE:
just used Perl to complete a mirror that wget fucked up that will make my life easier. How do you kill top level +keep contents?
---FORWARDED---
Flat
|
Top-Level Comments Only
no subject
codepoet.livejournal.com
2004-02-28 07:26 am (UTC)
(
link
)
...how do you *what*?
Char limits are a bitch..
xoder.livejournal.com
2004-02-28 04:28 pm (UTC)
(
link
)
Nevermind, I figured it out:
mv subdir/* ; rm -rf subdir/
I'm am teh f001
nooooo!
codepoet.livejournal.com
2004-02-28 06:36 pm (UTC)
(
link
)
use rmdir!
Re: nooooo!
xoder.livejournal.com
2004-02-28 10:12 pm (UTC)
(
link
)
why?
Re: nooooo!
codepoet.livejournal.com
2004-02-29 12:10 am (UTC)
(
link
)
Safety, mainly. It'a a Good Idea to avoid using rm -rf unless you Really Need To (to delete a directory with stuff in it)
5 comments
Post a new comment
Flat
|
Top-Level Comments Only
Log in
Account name:
Password:
Remember me
Other options:
Forget your password?
Log in with OpenID?
Close
menu
Log in
Create
Create Account
Display Preferences
Explore
Interests
Directory Search
Site and Journal Search
Latest Things
Random Journal
Random Community
FAQ
Shop
Buy Dreamwidth Services
Gift a Random User
DW Merchandise
Interest
Region
Site and Account
FAQ
Email
no subject
Char limits are a bitch..
mv subdir/* ; rm -rf subdir/I'm am teh f001
nooooo!
Re: nooooo!
Re: nooooo!