PDA

View Full Version : Urgent help on Linux...



blackendstars
03-10-2013, 01:11 PM
/home/msabbar/sample_dir2
`-- sample_dir
|-- admin
|-- cambridge
| |-- cafeteria
| |-- library
| `-- security
| |-- annex
| |-- building
| `-- parking
|-- faculty
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
`-- stenton
|-- gen_ed
| |-- Holidays
| `-- cars2
`-- lib_arts
|-- english.txt
`-- match.doc

11 directories, 11 files


Your current directory is stenton. Copy the first 300 lines of file
~bto120/phones to a new file called phone_directory in stenton. This file

blackendstars
03-10-2013, 01:18 PM
so i don't know the answer

but i know you use -300 head in this

AndiPersti
03-10-2013, 02:00 PM
Do you know about I/O-Redirecetion (http://www.tldp.org/LDP/abs/html/io-redirection.html)?

BTW: Please don't change your questions with edits. I wanted to answer your other question but noticed that you modified it to this one while writing my answer.

Bye, Andreas

blackendstars
03-10-2013, 03:11 PM
thanks i edit it out cuz i found the solution.....i found the solution to this question also
it's head -300 ~bto120/phones > phone_directory

since it's an assignment....only one answer is correct
so i was having trouble finding the right one...

thanks anyways for your help Andreas

phantomotap
03-10-2013, 03:40 PM
since it's an assignment....only one answer is correct

O_o

This is "GNU/Linux" we are talking about; there are exactly 4,631,284,112 correct answers.

Soma