01-29-2010
8,
0
Join Date: Jan 2010
Last Activity: 28 February 2010, 10:05 PM EST
Posts: 8
Thanks Given: 0
Thanked 0 Times in 0 Posts
Can someone please help me? (An example of how not to post homework.)
Hi,
when I run ls -l I get the following command (I already know ls) :
Code:
rwxrwxrwx 2 andrew andrew 4096 2010-01-25 22:00 test.txt
rwxrwxrwx 2 andrew andrew 4096 2010-01-25 21:01 test1.txt
rwxrwxrwx 3 andrew andrew 4096 2010-01-25 20:45 test2.txt
rwxrwxrwx 1 andrew andrew 4096 2010-01-25 01:12 test3.txt
I want to write a bash program that uses : cut, grep, sed and pipes
and makes the output asfollow (I know ls give me the name only,but i have to use ls -l):
Code:
-test.txt
-test1.txt
-test2.txt
-test3.txt
(there has to be a "-")
what should I use(I just know I should use the pipe):
ls -l |
Please note that "uses : cut, grep, sed and pipes" must be used