Doh!

That should be

        chmod 755 NumberLines.sh


> On Mar 28, 2019, at 8:25 AM, Rod Buchanan <[email protected]> wrote:
> 
> 
> Or create a two-line shell script (name it "NumberLines.sh") and put it in 
> Library/Application Support/BBEdit/Text Filters
> 
>       #!/bin/sh
>       nl -ba -s '. ' 
> 
> Make sure it is executable
> 
>       chmod 777 NumberLines.sh
> 
> Then you can run it like so
> 
>       Text->Apply Text Filter->NumberLines
> 
> 
>> On Mar 28, 2019, at 7:34 AM, Greg Raven <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Two easy steps to add the line numbers.
>> 
>> 1) Text > Prefix/Suffix Lines … -- prefix each line with ". "
>> 2) Text > Add/Remove Line Numbers …
>> 
>> On Tuesday, March 26, 2019 at 5:50:11 AM UTC-7, Vlad Ghitulescu wrote:
>> Hello!
>> 
>> I have a bunch (64 exactly :-) lines selected (copied from an iTunes 
>> playlist and inserted in BBEdit), like this 5 ones
>> 
>> Another One Bites The Dust 3:37
>> Bicycle Race 3:04
>> Bohemian Rhapsody 5:58
>> Breakthru 4:09
>> Bring Back That Leroy Brown 2:15
>> 
>> and I would like to prepend a number (beginning with 1) in this format
>> 
>> Another One Bites The Dust 3:37
>> Bicycle Race 3:04
>> Bohemian Rhapsody 5:58
>> Breakthru 4:09
>> Bring Back That Leroy Brown 2:15
>> that is
>> 
>> NUMBER. TRACK-TITLE TRACK-LENGTH
>> 
>> How can I do this?
>> 
>> Thanks!
>> 
>> Regards,
>> Vlad
>> 
>> P.S. If I could also replace whatever is before the track length with a 
>> space I would be even happier :-D
>> 
>> 
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or need technical support, please email
>> "[email protected] <mailto:[email protected]>" rather than posting 
>> to the group.
>> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
>> <https://www.twitter.com/bbedit>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:[email protected]>.
>> To post to this group, send email to [email protected] 
>> <mailto:[email protected]>.
>> Visit this group at https://groups.google.com/group/bbedit 
>> <https://groups.google.com/group/bbedit>.
> 
> -- 
> Rod Buchanan
> Kelly Supply Company
> 1004 W Oklahoma Ave
> Grand Island, NE 68802-1328
> 308 382-5670
> 308 382-8764 x1120
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
> <https://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
Rod Buchanan
Kelly Supply Company
1004 W Oklahoma Ave
Grand Island, NE 68802-1328
308 382-5670
308 382-8764 x1120

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to