Re: Modifying text in a large file
Re: Modifying text in a large file
- Subject: Re: Modifying text in a large file
- From: Deivy Petrescu <email@hidden>
- Date: Mon, 20 Oct 2003 11:11:30 -0400
On Monday, Oct 20, 2003, at 09:27 US/Eastern, christian vick wrote:
I want to search a string and then replace the entire line with another
string (or delete the line). This in a large text file (50 MB). If I
use
'read file' the script errors with 'out of memory', so vanilla AS is
not an
option here. I've searched Terminal 'apropos search'/'apropos
replace', but
didn't find anything useful. Does someone know how to do it via command
line, so i can use 'do shell script'...?
Greetings
Christian
Read "man sed"
If necessary you can create a file of things to change. It is extremely
fast.
Hope this helps.
Regards
Deivy Petrescu
http://www.dicas.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.