Re: Escaped tab character in shell (sed)
Re: Escaped tab character in shell (sed)
- Subject: Re: Escaped tab character in shell (sed)
- From: BJ Terry <email@hidden>
- Date: Fri, 16 Jan 2004 19:03:25 -0800
if you use \t in the applescript string, that gets replaced by a tab
character in applescript. It gets turned into a tab character as soon
as you compile though, the '\t' doesn't stay in the code. If you're
trying to put an escape for a tab directly in the regex, it's not going
to work. According to O'Reilly's Mastering Regular Expressions (Jeffrey
Friedl), GNU sed doesn't support '\t'. It also doesn't support hex or
octal escapes, which would be the next options.
BJ
On Jan 16, 2004, at 4:27 PM, Gnarlodious wrote:
>
How would I specify the tab character by escaping rather than using the
>
literal tab?
>
>
This works, where the white run is a tab character:
>
do shell script "sed 's/ //' "
>
>
>
But this doesn9t:
>
do shell script "sed 's/\\^t//' "
>
>
Nothing so far works, what am I doing wrong?
>
>
-- Gnarlie
>
_______________________________________________
>
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.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.