Help for this page

Select Code to Download


  1. or download this
    perl -lane 'print $last if ($F[0] ne $lastt); $last = $_; $lastt = $F[
    +0];'
    
  2. or download this
    perl -lane 'print $s += $F[2]'
    
  3. or download this
    find . -name 'Root' -print0 | xargs -0 perl -i -pe '$_=q(:pserver:sfin
    +k@cvs/usr/local/cvs)'
    
  4. or download this
    perl -lne 'print $1 while (/\"(.*?)\"/g)' filename
    
  5. or download this
    perl -lne 'print $1 while (/\"((\\.|[^\"])*)\"/g)' filename
    
  6. or download this
    perl -lne 'print if /(\w+)::\1/ .. /^\}/' *.cpp