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
reading lines c0mrade Shell Programming and Scripting 4 05-17-2008 04:22 PM
Reading lines in a file matching a pattern torenji Shell Programming and Scripting 4 10-25-2007 04:15 AM
skip reading certain lines in a file paulsew UNIX for Dummies Questions & Answers 5 03-26-2007 03:07 AM
Reading lines within vi editor asriva26 Shell Programming and Scripting 2 08-30-2006 09:47 AM
Reading lines within a Unix file. mariner UNIX for Advanced & Expert Users 5 11-18-2003 01:26 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 02-08-2008
ytokar ytokar is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 3
reading lines in pairs from file in ksh

I need to read pairs of lines from a file and compare them. We can assume that the number of lines in the file is even. Can i do it in korn shell?
  #2 (permalink)  
Old 02-08-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,293
Well, first, the obligatory question: is this a homework question? If so, we can't help you.

Assuming that it's not, can you show us what you've gotten so far?

Regards
  #3 (permalink)  
Old 02-08-2008
ytokar ytokar is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 3
it's not a homework, it's a workwork. So far i got nothing as the only tool i know is while read, and it does not let you read the second line (as far as I know).

Is there is way to detect EOF in ksh?
  #4 (permalink)  
Old 02-08-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,293
First try to Google on "compare files unix".
Once you have more specific questions, please return and we'd be more than happy to answer them!

Regards
  #5 (permalink)  
Old 02-08-2008
ytokar ytokar is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 3
What is not specific here? And when you say "we" who exactly do you mean?

I doubt you read my question because it has nothing to do with comaring files.
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 05:26 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