![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Splitting input files into multiple files through AWK command | arund_01 | Shell Programming and Scripting | 3 | 05-13-2008 06:17 AM |
| Find duplicates from multuple files with 2 diff types of files | ricky007 | Shell Programming and Scripting | 2 | 03-04-2008 10:46 AM |
| unzip particular gzip files among the normal data files | thepurple | Shell Programming and Scripting | 4 | 11-30-2007 08:17 AM |
| when I try to run rm on multiple files I have problem to delete files with space | umen | UNIX for Dummies Questions & Answers | 1 | 09-20-2005 12:20 AM |
| text files, ASCII files, binary files and ftp transfers | Perderabo | Answers to Frequently Asked Questions | 0 | 04-08-2004 01:25 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
regarding files
i want to read the file from EOF to 1st line of the file .
is there anyway to do this. sree |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
You mean you want to reverse the order of the lines in a file? try tac
|
|
#3
|
|||
|
|||
|
thank u
can u tell about tac
how we can use tac |
|
#4
|
|||
|
|||
|
try man tac
It's possible your system does not have it. to see if it is on your box try this command: Code:
which tac |
|
#5
|
|||
|
|||
|
but i wnat to get the lines from last to 1st programatically
in my system tac is there. |
|
#6
|
|||
|
|||
|
Try sed:
Code:
sed -n '1!G;h;$p' <filename> |
|
#7
|
||||
|
||||
|
This thread looks like an extension of mozilla object
|
||||
| Google The UNIX and Linux Forums |