Skip to content
  • About’n’Search
  • Datenschutzerklärung // Privacy Declaration

bytes and bones

stuff that matters

Month: February 2016

Written by #xxaxxelxxFebruary 22, 2016

What shell I am running on?

ps -p $$

Written by #xxaxxelxxFebruary 17, 2016

PROXY with SOCAT

socat TCP-LISTEN:80,reuseaddr,fork,su=nobody TCP:www.bytesandbones.com:80

Written by #xxaxxelxxFebruary 15, 2016February 15, 2016

bash | parsing lines to array with quoted delimiters

OIFS=$IFS;IFS=$’\n’;ARRAY=($(echo “$LINE” | awk ‘{ for (i = 0; ++i <= NF;) printf “%s\n”, $i }’ FPAT='([^,]+)|(“[^”]+”)’));IFS=$OIFS

Written by #xxaxxelxxFebruary 2, 2016

Parse Apache | Icecast logs

gawk ‘BEGIN { FPAT=”([^ ]+)|(\”[^\”]+\”)|(\\[[^\\]]+\\])” } { print $9 }’

Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • bytes and bones
    • Join 92 other followers
    • Already have a WordPress.com account? Log in now.
    • bytes and bones
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar