jed-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: pasting text using the X clipboard


Dave Kuhlman <dkuhlman@xxxxxxxx> wrote:
>Yes, yes, I know.  That could be re-written in Perl in 3 lines or
>less.  Here is a perl command that you could filter a set of lines through
>to remove whitespace at the beginning of each line:
>
>    perl -p -e "s/^\ \t*//"

And here is a jed-script:

  #!/usr/bin/env jed-script
  foreach (stdin) ()=fputs(strtrim_beg (),stdout);

(It is also an slsh script).

--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]