copy one file to different file
hi all,
I have a sample.log file which contains 100 lines. I need to copy last 50 lines from this file to a new text file. how can I do this. ? Plz help .... thanks in advance regards Shravan |
There are many ways you could do this, but the first thing that pops into my head is:
Code:
tail -50 sample.log >> new.log |
U can try this way also...
#scp sample.log newfile.log |
Using scp you will copy the file in it's entirety and there would be no reason to use scp over cp. Since you don't need to copy to another host using ssh.
|
thanks all,
I got it working from MS3FGX.. rgds Shravan |
All times are GMT -5. The time now is 08:32 PM. |