Posted By

dbiesecke on 11/04/14


Tagged

repeat char


Versions (?)

perl simple one-liner


 / Published in: Perl
 

Only some small one-liner's
  1. # print a char or something else X times
  2. % perl -e 'print "a" x 32'
  3. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa%
  4.  
  5. #######
  6.  
  7. # Search and replase wird wildchars
  8.  
  9. % perl -p -e 's/postfix/l0lfix/i' /etc/passwd # | tail -1
  10. l0lfix:x:128:134::/var/spool/postfix:/bin/false

Report this snippet  

You need to login to post a comment.