The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
c program to extract text between two delimiters from some text file kukretiabhi13 High Level Programming 7 12-03-2008 06:29 PM
Help me clean this up scanner248 UNIX for Dummies Questions & Answers 1 10-15-2007 05:31 PM
Clean File kris01752 UNIX for Advanced & Expert Users 5 09-28-2006 11:40 AM
Clean file in single action djp Shell Programming and Scripting 1 06-19-2006 06:34 PM
grep multiple text files in folder into 1 text file? coppertone UNIX for Dummies Questions & Answers 7 08-23-2002 03:50 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-24-2006
kris01752 kris01752 is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 17
Clean Text File

HI,
I have a file which comes from crystal reports in the below format.
I need to clean the file so that i will only have the columns(deptid,empid,ename,sal) and the data below the column names.
There is a bug in the repoting tool( we only see page1-1 for every department).The rundate change dynamically and the number of departments changes dynamically.


Rpt 001 - Employee Master RunDate:08/03/2006
Parameter
Employee: ALL
Sal: ALL


deptid empid ename sal

100 1 Thomas 2000
100 2 Brian 7000


Page -1 of 1




Rpt 001 - Employee Master RunDate:08/03/2006
Parameter
Employee: ALL
Sal: ALL

deptid empid ename sal

200 1 Thomas 2000
200 4 Brian 7000





Page -1 of 1






Rpt 001 - Employee Master RunDate:08/03/2006
Parameter
Employee: ALL
Sal: ALL






deptid empid ename sal

300 4 Thomas 2000
300 5 Brian 7000





Page -1 of 1


Can some one help me in writing the script
 

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 07:12 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