Results for "Tipsoftheday"

Tags

  • Convert space separated data to tab separated: perl -p -i -e 's/\s+/\t/g' file.txt #Perl #Tipsoftheday #Perlonliner

    Tags: Perl, Tipsoftheday, Perlonliner

    3853 days ago

  • regex (?(3)foo|fu)bar - Matches foo if 3rd subpattern has matched, fu if not #Tipsoftheday #Regex

    Tags: Tipsoftheday, Regex

    3731 days ago

  • Get line number with Perl $fh->input_line_number() #Perl #Tipsoftheday #Tricks

    Tags: Perl, Tipsoftheday, Tricks

    3359 days ago

  • Search and replace the string 'this' with the string 'that' in the file filename. perl -p -i -e 's/this/that/g' filename #Perl #Trick #PerlOneLiner #Tipsoftheday #Replace #FindandReplace

    Tags: Perl, Trick, PerlOneLiner, Tipsoftheday, Replace, FindandReplace

    3152 days ago

  • Print all possible 2 combination of words ( ATGC): $letter = join',','A','T','G','C'; @abc=glob "{$letter}{$letter}"; foreach (@abc) { print "$_\n"; } #Perl #PerlTrick #TipsOftheDay

    Tags: Perl, PerlTrick, TipsOftheDay

    3212 days ago