LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-17-2007, 08:32 AM   #16
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 5.7, Solaris 10
Posts: 10,994

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752

mkdir rem1
cd rem1

create file rmy.sh:
Code:
cd ..
rm -rf rem1
chmod u+x rmy.sh
./rmy.sh

cd ..
ls
rem1 gone
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
want to 'tar' a folder without some contents of folder shipon_97 Linux - Newbie 5 10-13-2007 05:21 AM
How to create a cron job to delete a folder's contents? s0n|k Linux - Newbie 1 10-05-2007 08:59 AM
Script to delete files from specified folder mrrx7 Solaris / OpenSolaris 4 08-27-2007 04:50 AM
Script for folder emptiness? samw5 Linux - Software 4 04-26-2006 12:03 PM
need a script to delete all files from a folder and subfolders cccc Programming 1 03-04-2005 11:54 AM


All times are GMT -5. The time now is 03:35 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration