The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shell script to read a line in gps receiver log file and append that line to new file gudivada213 Shell Programming and Scripting 3 06-24-2009 06:16 AM
Delete line in file based on data in another file earth_goddess Shell Programming and Scripting 1 12-29-2008 10:47 AM
how can search a String in one text file and replace the whole line in another file kkraja UNIX for Dummies Questions & Answers 6 08-06-2008 07:23 AM
Problem with reading file line-by-line, and outputting to a new file Darkness Fish Shell Programming and Scripting 4 07-18-2008 06:54 AM
Append a field to the end of each line of a file based on searching another file. ultimate Shell Programming and Scripting 2 03-29-2005 10:21 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 3 Weeks Ago
Shellslave Shellslave is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 10
Get the bottom line of a file to the top of the file

Hi,

i have a small requirement where i have to get the bottom most line from a file to the topmost position. a small example is shown below..

$ cat beep.txt
It is first documented as being played in southern England.
In the 16th century.
By the end of the 18th century,
Cricket is a bat-and-ball team sport.


i want it as

$ cat beep.txt
Cricket is a bat-and-ball team sport.
It is first documented as being played in southern England.
In the 16th century.
By the end of the 18th century,


the problem is this file gets updated daily so each time i run the script i want to get the bottom most thing in the top most position....

Thanks for the help in advance
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0