Help for this page

Select Code to Download


  1. or download this
    perl -ne'if (s/.../.../) { print } else { print STDERR }'
        <access_log 2>out.err >out.csv
    
  2. or download this
    perl -ne'print { s/.../.../ ? STDOUT : STDERR } $_'
        <access_log 2>out.err >out.csv
    
  3. or download this
    perl -pe'select s/.../.../ ? STDOUT : STDERR'
        <access_log 2>out.err >out.csv