The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
grep unix.com with google



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-15-2009
Registered User
 

Join Date: Nov 2006
Posts: 13
File processing

Hello,

I am trying to find a solution which could be simple rather than coding unnecessary code. Scenario I have is :-

I have a line sequential text file and while reading the file I need to call some kind of program which does data transfer, and read next so on... The issue I have is I have to process 5 lines at a time, and when 5th one finishes I need to read the file and process so on..... SO always 5 process should be running.. Any help?

Thanks
  #2 (permalink)  
Old 11-15-2009
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,145
A sample input and a desired output would be a good start (using the code tags of course).
  #3 (permalink)  
Old 11-15-2009
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 7,119
Quote:
Originally Posted by sentak View Post
Hello,

I am trying to find a solution which could be simple rather than coding ......
What scripting language are you planning to use?

Perl? PHP? Bash? Ksh? other?
  #4 (permalink)  
Old 11-16-2009
Registered User
 

Join Date: Nov 2006
Posts: 13
I am using ksh
  #5 (permalink)  
Old 11-16-2009
ahmad.diab's Avatar
Registered User
 

Join Date: May 2008
Location: Amman Jordan in MEA
Posts: 412
need sample of i/p & desired o/p please.
Sponsored Links
Reply

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 Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk help in processing file. ekb Shell Programming and Scripting 3 10-23-2009 11:50 AM
how to change the current file processing to some other random file in awk ? salman4u Shell Programming and Scripting 2 03-02-2009 04:35 AM
Checking for a control file before processing a data file purna.cherukuri Shell Programming and Scripting 4 09-01-2008 11:52 AM
processing a file with sed and awk manouche Shell Programming and Scripting 4 10-11-2007 05:25 PM
Have a shell script check for a file to exist before processing another file heprox Shell Programming and Scripting 3 11-14-2006 03:26 AM



All times are GMT -4. The time now is 09:21 AM.


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