The UNIX and Linux Forums  

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
Remove duplicate lines in log files karthikn7974 Shell Programming and Scripting 4 03-21-2009 06:41 PM
replace multiple lines in multiple files unihp1 Shell Programming and Scripting 1 09-21-2008 09:47 AM
Adding Multiple Lines to Multiple Files dayinthelife Shell Programming and Scripting 2 06-04-2008 12:50 PM
trying to count lines in multiple files llsmr777 UNIX for Dummies Questions & Answers 1 01-23-2008 01:52 PM
How can I replace multiple lines from different files ranga27 Shell Programming and Scripting 2 02-07-2007 08:57 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 11-13-2008
olloong olloong is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 3
Question How to remove certain lines in multiple txt files?

Hi ,

I have this type of files:-

BGH.28OCT2008.00000001.433155.001
BGH.28OCT2008.00000002.1552361.001
BGH.28OCT2008.00000003.1438355.001
BGH.28OCT2008.00000004.1562602.001

Inside them contains the below:

5Discounts
6P150 - Max Total Usage RM150|-221.00
P150 EPP - Talktime RM150 x 24|-169.35
7-390.35
90.00
812.71
3ITEMISED|YES
4DOMESTIC
5Calls
Calls
Calls
Calls
Calls
Calls
Calls
Calls
Calls
.
.
.
5Discounts
6P150 - Max Total Usage RM150|-221.00
P150 EPP - Talktime RM150 x 24|-169.35
7-390.35
90.00
812.71
3ITEMISED|YES
4DOMESTIC
5Calls
Calls
Calls
Calls
Calls
Calls
Calls
Calls
Calls
.
.
.

How do I get those line in green deleted as i do not know when is the last 'calls' line?
And how do I loop to remove those lines in all the txt files?

Anyone can help?
 

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 11:50 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