LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-14-2004, 02:11 PM   #1
g00ral
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 5

Rep: Reputation: 0
echo "test" | rmdir


Hello all

I was trying to use a pipe before rmdir but the only result of using echo "test"|rmdir was:
rmdir: too few arguments

Do you have any ideas how to pass an argument to rmdir??

g00ral
 
Old 05-14-2004, 02:26 PM   #2
kvedaa
Member
 
Registered: Mar 2004
Location: Virginia
Distribution: PacketProtector
Posts: 331

Rep: Reputation: 30
x=test; export x | rmdir $x
 
Old 05-14-2004, 07:50 PM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
echo test | xargs rmdir
 
Old 05-14-2004, 10:38 PM   #4
kvedaa
Member
 
Registered: Mar 2004
Location: Virginia
Distribution: PacketProtector
Posts: 331

Rep: Reputation: 30
Berhanie,

your answer is much cleaner than mine.
 
Old 05-14-2004, 11:46 PM   #5
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
very kind of you to say that. xargs is a useful thing.
 
Old 05-15-2004, 01:20 AM   #6
g00ral
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
Smile THX

Thanks a lot for all sollutions.

g00ral
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What does echo alias "char-major-10-224 off" >> /etc/modules.conf do? abefroman Linux - Software 2 09-16-2009 10:10 PM
simple "echo > qbc" cron jobs doesn't run shole Linux - Newbie 3 09-23-2006 02:09 PM
"echo 3 > /proc/acpi/sleep" does nothing - ?? achallenger1 Linux - Newbie 6 08-02-2005 11:28 PM
(echo -n "standby" > /sys/power/state) only allowed for root? brynjarh Debian 5 02-14-2005 09:08 AM
want full description of "echo num > / path/...." zameer_india Linux - Newbie 5 01-08-2005 03:10 AM


All times are GMT -5. The time now is 09:48 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 Google+: linuxquestions
Open Source Consulting | Domain Registration