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
Increasing screen display size sellafrica1 AIX 0 05-08-2008 10:09 AM
CDE running but not display on screen silves AIX 0 01-17-2008 07:49 AM
file display on screen on pg at time zip_zip Shell Programming and Scripting 1 09-07-2003 04:30 AM
Simple Perl Script to Screen Display Shakey21 Shell Programming and Scripting 1 04-19-2002 11:55 AM
controlling screen display jrdnoland1 Shell Programming and Scripting 6 02-08-2002 05:09 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-30-2007
zilla30066 zilla30066 is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 13
screen display help

Hello All,

I have a file that is formatted like this
1234556
1234567
1234588
1123888
1999999
1010101
1919191
1919191....

for a total of 26000 + lines
how do I get a script to read lets say 50 lines at a time
and display the output to the screen in column format around 5 or 6 columns wide

lets say

1234556 9999999 etc
1234567 8888888
1234588 7777777
1123888 6666666
1999999 5555555
1010101 4444444
1919191 3333333
1919191 2222222


like that

Thanks
  #2 (permalink)  
Old 01-30-2007
Andrek Andrek is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 122
No need for a script.
try the "pr" command (HP-UX)

if your file name is "myfile" and you want 8 column out put

pr -8k myfile | more

otherwise its the "paste -s myfile" command

Good luck
  #3 (permalink)  
Old 01-30-2007
zilla30066 zilla30066 is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 13
thanks I'll give it a try
Closed Thread

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 03:21 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