• 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
Piping sed to sed commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Piping sed to sed commands


  • Subject: Piping sed to sed commands
  • From: Gnarlodious <email@hidden>
  • Date: Fri, 16 Jan 2004 21:45:19 -0700

Entity BJ Terry spoke thus:

> GNU sed doesn't support '\t'.
Fine, I'm solving this another way.

I'm having a problem piping sed output to another sed command. here's what
I'm doing:

do shell script "sed -e
's/.*<key>Name<\\/key><string>\\(.*\\)<\\/string>/<td class=Name>\\/' | sed
's/.*<key>Artist<\\/key><string>\\(.*\\)<\\/string>/<td class=Artist>\\/' "
& inPOSIX & ">" & outPOSIX

The first command works but the rest are ignored. I see examples of piped
sed out-in on web examples which suggests it should work.

What is wrong here?

-- Gnarlie
http://www.Gnarlodious.com/iTunes.html

<key>Track ID</key><integer>456</integer>
<key>Name</key><string>Rock Me Right</string>
<key>Artist</key><string>Susan Tedeschi</string>
<key>Album</key><string>Just Won't Burn</string>
<key>Genre</key><string>Rock Blues</string>
<key>Kind</key><string>AAC audio file</string>
_______________________________________________
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:
    • Re: Piping sed to sed commands
      • From: Emmanuel <email@hidden>
    • Re: Piping sed to sed commands
      • From: BJ Terry <email@hidden>
References: 
 >Re: Escaped tab character in shell (sed) (From: BJ Terry <email@hidden>)

  • Prev by Date: Re: Egg Timer Question
  • Next by Date: Re: Egg Timer Question
  • Previous by thread: Re: Escaped tab character in shell (sed)
  • Next by thread: Re: Piping sed to sed commands
  • Index(es):
    • Date
    • Thread