• 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: vi to do Shell Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vi to do Shell Script


  • Subject: Re: vi to do Shell Script
  • From: Emmanuel LEVY <email@hidden>
  • Date: Thu, 05 Jan 2012 13:02:47 +0100

Hello,

That would be a single line with Satimage osax: change " +" into tab in alias "path:to:the:original:text:file" with regexp.

I wouldn't change " *" because the empty string would match that pattern.

Emmanuel

On Jan 4, 2012, at 11:00 PM, KOENIG Yvan wrote:

> Hello
>
> I want to replace every chunks of space characters  embedded in a text file by a single TAB one.
>
> I was said tha the command vi :
>
> :%s/  */ctrl-i/g
>
> is able to do the trick.
>
> Alas, I have no idea of the way I may trigger it with a do Shell Script command.
>
> The scheme would be :
>
> set the_path to path:to:the:original:text:file
> set the_path_Unix to posix path of the_path
> set the_path_qUnix to quoted form of the_path_Unix
> set edited_text to do Shel Script apply_vi_cmd to  the_path_qUnix
>
> I hope that somebody will be able to give the correct incantation.
>
> Thanks in advance.
>
> I hope that my question is clear enough because for the old frenchy, it's time to switch off.
>
> Yvan KOENIG (VALLAURIS, France) mercredi 4 janvier 2012 23:00:37
>
>
>
>
>
> _______________________________________________
> 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

 _______________________________________________
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

References: 
 >vi to do Shell Script (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: vi to do Shell Script
  • Next by Date: User Privileges
  • Previous by thread: Re: vi to do Shell Script
  • Next by thread: talk an asset box
  • Index(es):
    • Date
    • Thread