RE:

Feb. 26th, 2004 11:12 pm
xoder: (Default)
[personal profile] xoder
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---

(no subject)

Date: 2004-02-28 07:26 am (UTC)
From: [identity profile] codepoet.livejournal.com
...how do you *what*?

Char limits are a bitch..

Date: 2004-02-28 04:28 pm (UTC)
From: [identity profile] xoder.livejournal.com
Nevermind, I figured it out:
mv subdir/* ; rm -rf subdir/

I'm am teh f001

Re: nooooo!

Date: 2004-02-29 12:10 am (UTC)
From: [identity profile] codepoet.livejournal.com
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)
Page generated Dec. 27th, 2025 04:15 pm
Powered by Dreamwidth Studios