Re: Search and replace with Unix commands
Re: Search and replace with Unix commands
- Subject: Re: Search and replace with Unix commands
- From: Emmanuel LEVY <email@hidden>
- Date: Thu, 5 Aug 2010 02:38:08 +0200
I recommend the "change" command in Satimage osax.
I would try something like:
change "^[\\r\\n]+" & searchstring into replacementstring & "\\0" in
alias "Macintosh HD:file:path" with regexp
Emmanuel
Hi,
I need to search a string like '\rJohn' or '\nJohn' with another
string
All the unix command (Sed, Awk...) works one line at time and the
separator is usually LF.
How can I search and replace, not using pure AS because some text
file are really bigger?
I would like to use do shell script using cat to read the file and
some Unix command to search empty line followed by my string and
replace them with something else.
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden