perl simple one-liner


/ Published in: Perl
Save to your folder(s)

Only some small one-liner's
======================


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.