Can someone please help me? (An example of how not to post homework.)

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Can someone please help me? (An example of how not to post homework.)
# 1  
Old 01-29-2010
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
# 2  
Old 01-29-2010
Please read the Rules for posting homework again, and be sure to include the full course information
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Apparently my post is Homework/Classwork?

I previously posted a question in the Shell Scripting forum a few minutes ago. I recieved a message telling me I had breached a rule, apparently because my post was a homework infraction. Well, im currently trying to figure out how to use Raspberry Pi's (as im a starter) I asked one of my... (1 Reply)
Discussion started by: Waggie14
1 Replies

2. Post Here to Contact Site Administrators and Moderators

Do I post to Homework forum if learning on own

Quick question, I'm learning shell scripting on my own from resources like the 'Teach Yourself' books, web sites, etc. If I have any questions about these materials, do I still need to post them to the homework section? The template asks specific things like school associated with or... (7 Replies)
Discussion started by: Chasman78
7 Replies

3. Post Here to Contact Site Administrators and Moderators

Help with deleting post, apologies about the earlier post.

Apologies about the earlier post, i didnt realise, could i delete that post? I apologise again, SynGc (1 Reply)
Discussion started by: SynGc
1 Replies

4. Shell Programming and Scripting

Can someone please help me? (Another example of how not to post homework.)

Hi, when I run ls -l I get the following command (I already know ls) : 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... (6 Replies)
Discussion started by: andrew1400
6 Replies
Login or Register to Ask a Question