Substitute a Keyword In a File

October 9th, 2006 liewsheng

Sometime I need to replace a keyword with another, I can’t just open a file and substitute 1 by 1. It is faster to using a single command line. There have more than 2 ways to do it, but I prefer this 2 command: perl and sed. To substitute a word ‘abc’ to ‘def’ in […]

Posted in perl, sed, Text Manipulation | Hits: 58807 | 10 Comments »

convert perl scripts into binaries

September 26th, 2006 mysurface

You can covert perl script into ELF binary files, c source code, bytecode etc. You do this my using perlcc. You can have list of examples by just man perlcc But here, i gonna only show you few. First let us generate a perl script, create a file call hello #!/usr/bin/perl print “hello world. “; […]

Posted in Developer, file, Misc, perl, perlcc | Hits: 53726 | 4 Comments »