- Subject: Re: pasting text using the X clipboard
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Mon, 11 Sep 2006 20:43:59 -0400
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]