On 11/10/17 at 3:30 AM, [email protected] (Georg Portenkirchner) wrote:

I have a list that I want to sort in reverse order. So that
Bob
Alex
Jack
Andy

becomes

Andy
Jack
Alex
Bob

The attached Perl one-liner will do it. Place it in your Text Filters (Application Support/BBEdit/Text Filters/) and run it from the "Apply Text Filter" command on the Text menu.

In case the attachment doesn't come through, the entire body of the script is:

    #!/usr/bin/env perl

    print reverse <>;

Enjoy,

R.
--
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

--
This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://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.
#!/usr/bin/env perl

print reverse <>;

Reply via email to