logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: pasting text using the X clipboard: msg#00018

Subject: 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



<Prev in Thread] Current Thread [Next in Thread>