Advertisement
wariat

circle.pl

Mar 26th, 2023 (edited)
1,917
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.31 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. # https://circle.grasserisen.de/
  4. # xclip -o -l | ./circle.pl
  5. # xclip -o -l | ./circle.pl | sort -R | head
  6.  
  7. use 5.016;
  8. use warnings;
  9. use autodie;
  10.  
  11. foreach ( <> )
  12. {
  13.   next if ( /^$/ ); # puste
  14.   s/^([^@]*)\n$/$1\@mastodon.social\n/;
  15.   s/^(.*)\@(.*)/https:\/\/$2\/\@$1/;
  16.   print;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement