• 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
Search and replace with Unix commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Search and replace with Unix commands


  • Subject: Search and replace with Unix commands
  • From: Hagimeno <email@hidden>
  • Date: Thu, 5 Aug 2010 00:08:01 +0000 (GMT)

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Search and replace with Unix commands
      • From: Tommy Bollman <email@hidden>
    • Re: Search and replace with Unix commands
      • From: Bruce Brown <email@hidden>
    • Re: Search and replace with Unix commands
      • From: "Mark J. Reed" <email@hidden>
    • Re: Search and replace with Unix commands
      • From: Emmanuel LEVY <email@hidden>
  • Prev by Date: Re: List oddity
  • Next by Date: Re: List oddity
  • Previous by thread: Re: Scripting Bridge, System Events, current application
  • Next by thread: Re: Search and replace with Unix commands
  • Index(es):
    • Date
    • Thread