![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | 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. |
|
|
||||
| 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 | Display Modes |
|
|||
|
Just out of curiosity, you can use shell constructs for this, too.
Code:
#!/bin/sh
tac () {
local line
if read line; then
tac
printf '%s\n' "$line"
fi
}
for f; do
tac <"$f"
done
|
|||
| Google The UNIX and Linux Forums |