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