LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-23-2005, 01:52 AM   #1
K3vin
LQ Newbie
 
Registered: Oct 2002
Posts: 12

Rep: Reputation: 0
delete chunks or regions from text file - help


hi. all
i am trying to find a command line way (sed ? ) or deleting regions of text from a file.

The idea is to strip my Inbox file. It's currently quite big and i was wondering whether it's possible to ask sed to cut regions starting with word "a" and ending with word "b"

Any comments will be appreciated

Thanks
Kevin
I
 
Old 09-23-2005, 02:34 AM   #2
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 745

Rep: Reputation: 64
I have no answer to what you attempt to do here, but have you tried to compact your mailbox? I didn't know about this feature and ended up with a huge inbox file.

Cheers, Leon.
 
Old 09-25-2005, 08:08 PM   #3
K3vin
LQ Newbie
 
Registered: Oct 2002
Posts: 12

Original Poster
Rep: Reputation: 0
compact Mailbox

Hi Leon,

This could be helpful.. How about would i go doing that? I use Evolution.

Thanks
Kevin
 
Old 09-26-2005, 02:57 AM   #4
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 745

Rep: Reputation: 64
No idea about Evolution, never used it myself. But in Thunderbird there's an option under the File menu (File -> Compact Folders). Simple as that.

When you cat your inbox file, you might see that loads of old mails that you thought you had deleted from your inbox are still there. This easily adds up to several MBs. Compacting it will get rid of that abundance.

Cheers, Leon.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rute - in no chunks format? itsjustme Linux - General 1 04-18-2005 11:15 PM
Delete line from flat text file in C zaichik Programming 6 01-26-2005 06:16 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM
How to delete a line from a text file with shell script programming Bassam General 1 01-28-2004 08:51 PM
DVD regions TX_metalhead Linux - General 4 02-04-2002 05:10 AM


All times are GMT -5. The time now is 03:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration