Pipes and Redirection
Hello
I have a Questions How I can achieve these: 1) Redirect the listing of the /usr/bin directory to a file called listing.log 2) Append the listing of the /etc directory to listing.log |
Quote:
2)ls /etc/* >> listing.log ">>" this sign appends the text in the file. |
Smells like homework ... :tisk:
|
Quote:
What have you tried and what are you stuck with? Hint: search for bash redirection and/or bash pipes |
Hi,
looks like homework, so I'll not give you the answer. Instead I'll point you in the right direction. For 1) you need to learn about ">", and for 2) you need to learn about ">>". Cheers, Evo2. |
if you are still learning don't take the shortcut, learn the basic and have a solid foundation.
it will help you a lot. check and read this link below: http://www.tldp.org/LDP/intro-linux/...#sect_05_01_02 |
All times are GMT -5. The time now is 09:17 AM. |