Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th August 2014
Mike-Sanders Mike-Sanders is offline
Port Guard
Join Date: Dec 2012
Posts: 10
Thanked 0 Times in 0 Posts
Default Limit output to range of lines

Some handy information when you want to limit output to a given range of lines... Example, output only lines 1 to 20:

sed -n 1,20p file | next-tool...
Mike's FreeBSD Stuff
Reply With Quote

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ksh: wrap lines? Skinny OpenBSD General 11 3rd May 2013 11:30 PM
No range from new nic divadgnol67 OpenBSD General 2 25th October 2010 01:47 AM
ftp client port range kondziq FreeBSD General 1 16th June 2010 01:31 AM
Csh - range expansion? ivanatora Programming 8 4th November 2008 03:16 AM
Putting Lines to Together. bigb89 Programming 4 24th September 2008 03:59 AM

All times are GMT. The time now is 06:24 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick