Advertisement

07.15.2008 at 07:18AM PDT, ID: 23566115
[x]
Attachment Details

Unix: show text file in 'reverse' (ie, last page first)

Asked by alvarso in Linux

Tags: unix, text file, more, less

Is there a simple way to use the "more" or "less" unix commands (I have debian) to show a text file in reverse?  Not fully in reverse, but rather to start at the end of the file, then go backwards.

I have a log for a backup which is now 350MB (no extra zero), and it appends new entries to the end of the file, so when I want to see the file I have open emacs or other editor to easily go to the end; I want to simply use "less" and have it show the last page first.

(NO, I cannot modify the source code of the backup to fix the log file appending process).

Thanks,

Alvar
Start Free Trial
[+][-]07.15.2008 at 07:26AM PDT, ID: 22007320

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux
Tags: unix, text file, more, less
Sign Up Now!
Solution Provided By: shakoush2001
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.15.2008 at 07:27AM PDT, ID: 22007325

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 11:03AM PDT, ID: 22009271

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906