mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 13:57:59 +01:00
25 lines
541 B
Perl
25 lines
541 B
Perl
|
#!/usr/bin/perl
|
||
|
|
||
|
print "(sed";
|
||
|
|
||
|
foreach $arg (@ARGV)
|
||
|
{
|
||
|
print " -e 's/ $arg / \e[1m$arg\e[21m /g'";
|
||
|
print " -e 's/ $arg)/ \e[1m$arg\e[21m)/g'";
|
||
|
print " -e 's/($arg /(\e[1m$arg\e[21m /g'";
|
||
|
print " -e 's/($arg)/(\e[1m$arg\e[21m)/g'";
|
||
|
print " -e 's/ $arg\$/ \e[1m$arg\e[21m/g'";
|
||
|
print " -e 's/^$arg /\e[1m$arg\e[21m /g'";
|
||
|
print " -e 's/^$arg\$/\e[1m$arg\e[21m/g'";
|
||
|
}
|
||
|
|
||
|
print " | sed";
|
||
|
|
||
|
foreach $arg (@ARGV)
|
||
|
{
|
||
|
print " -e 's/ $arg)/ \e[1m$arg\e[21m)/g'";
|
||
|
print " -e 's/ $arg\$/ \e[1m$arg\e[21m/g'"
|
||
|
}
|
||
|
|
||
|
print ")";
|