• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Escaped tab character in shell (sed)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Piping sed to sed commands
      • From: Gnarlodious <email@hidden>
References: 
 >Escaped tab character in shell (sed) (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Confusion says what? (was Re: Script expects quoted text mystery)
  • Next by Date: Re: Egg Timer Question
  • Previous by thread: Escaped tab character in shell (sed)
  • Next by thread: Piping sed to sed commands
  • Index(es):
    • Date
    • Thread