Help for this page

Select Code to Download


  1. or download this
    echo "'$SHELL'"       ->      outputs 'bash'
    echo '"$SHELL"'       ->      outputs "$SHELL"
    
  2. or download this
    echo "a ' quote"' and a " quote'
    outputs: a ' quote and a " quote
    
  3. or download this
    cat file.txt |  perl -ne '{chomp; ($a, $b) = split/\s+/; $s = "$a $b";
    + next if($s !~ /^\w+\'"'"'?\w+?\s+\w+\'"'"'?\w+?$/); print "$_\n"}' |
    + wc -l