![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Display Serial Number | dkranes | SUN Solaris | 5 | 05-16-2008 09:38 AM |
| How print number | bisla.yogender | Shell Programming and Scripting | 4 | 04-28-2008 06:51 AM |
| to print number one less than actual number | cdfd123 | Shell Programming and Scripting | 4 | 09-06-2007 06:56 AM |
| How to use ps to display processor number | tumblez | UNIX for Dummies Questions & Answers | 1 | 04-04-2007 07:31 AM |
| How to print at a specific position of the display | efernandes | Shell Programming and Scripting | 1 | 01-23-2007 08:08 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
print or display certain number of file
Hi,
I am sure this is possible in awk or sed or a combination of the two. Can someone help me determine the best way to display or print certain section of a file, ie only certain number of lines. Example: File1 1 has 20 lines. I need to be able to print from line 5 to line 10 of this file. How can I get this done. I know sed -n '5 p' File1 will get me the 5 line. However I need a range of lines from this file. Please let me know how to do this Thx |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|