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