Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. printf 'bus\nit\nthe\nend\nis\nnigh\n' |
  4. perl -0777ne '
  5.    BEGIN {use re "debug"}
  6.    /\A
  7.        (?= .*? ^ (\w) (?!\1)(\w) (?!\1|\2)(\w) $)
  8.        (?= .*? ^ \3 (?!\1|\2|\3)(\w) (?!\1|\2|\3|\4)(\w) $)
  9.        (?= .*? ^ (?!\1|\2|\3|\4|\5)(\w) (?!\1|\2|\3|\4|\5|\6)(\w) $)
  10.        (?= .*? ^ \4 \6 (?!\1|\2|\3|\4|\5|\6|\7)(\w) \2 $)
  11.    /xsm and
  12.    print "$1,$2,$3,$4,$5,$6,$7,$8.\n"
  13. ' 2>&1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement