The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr HP-UX 1 10-16-2006 01:16 PM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr Shell Programming and Scripting 0 09-19-2006 06:44 PM
wc command help.... and other unix command....... urgent dashi2k UNIX for Dummies Questions & Answers 1 01-20-2005 02:39 PM
UNIX command jodders UNIX for Dummies Questions & Answers 2 02-15-2004 06:34 AM
Unix command help JJJ UNIX for Dummies Questions & Answers 3 03-11-2002 05:39 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-30-2007
Registered User
 

Join Date: Apr 2007
Posts: 3
unix command

i want to know how to see the specific pages from a large file.suppose a file has 1000 pages and we want to view from 20 to 60 how can we view this using unix commands or using programs.reply asap.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-30-2007
aigles's Avatar
Registered User
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,199
What is the definition of a page in your file :
  • Sections of the file separated by a FormFeed character ?
  • Fixed count of consecutive lines (66 for example) ?

Jean-Pierre.
Reply With Quote
  #3 (permalink)  
Old 04-30-2007
Registered User
 

Join Date: Apr 2007
Posts: 3
Quote:
Originally Posted by aigles
What is the definition of a page in your file :
  • Sections of the file separated by a FormFeed character ?
  • Fixed count of consecutive lines (66 for example) ?

Jean-Pierre.

the fixed count is 20.
Reply With Quote
  #4 (permalink)  
Old 04-30-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,493
Code:
pg -20 file
If there are formfeed characters in there this will behave oddly.
Reply With Quote
  #5 (permalink)  
Old 05-01-2007
Registered User
 

Join Date: Apr 2007
Posts: 3
thanks

Quote:
Originally Posted by jim mcnamara
Code:
pg -20 file
If there are formfeed characters in there this will behave oddly.




thanks a lot jim mcnamara.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0