![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reverse Arrange File | The One | UNIX for Dummies Questions & Answers | 4 | 06-13-2007 08:57 AM |
| Need to read a file in reverse | scorreg | Shell Programming and Scripting | 5 | 03-01-2006 08:14 PM |
| Creating file contents using contents of another file | ReV | Shell Programming and Scripting | 21 | 02-24-2006 06:25 AM |
| sort a file in reverse order | frustrated1 | Shell Programming and Scripting | 11 | 09-21-2005 12:41 PM |
| reverse lookup file problem | Westy564 | IP Networking | 2 | 01-09-2004 10:55 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Code:
#! /opt/third-party/bin/perl
open(FILE, "<", "a");
@arr = <FILE>;
close(FILE);
for( my $i = $#arr; $i >= 0; $i-- ) {
print "$arr[$i]" ;
}
exit 0
|
| Forum Sponsor | ||
|
|