Skip to content

Instantly share code, notes, and snippets.

View jeanbza's full-sized avatar
🐘

Jean Barkhuysen jeanbza

🐘
View GitHub Profile
@jeanbza
jeanbza / log.go
Last active August 29, 2015 14:00 — forked from cespare/log.go
import (
"time"
"net/http"
"io"
"fmt"
"strings"
)
const apacheFormatPattern = "%s - - [%s] \"%s %s %s\" %d %d %.4f\n"
  1. Enter vi edit mode for multiple files:
$ ○ → vi webapps/*.xml
5 files to edit
  1. See all files you're editing: :ls
  2. Search and replace across all files: :argdo %s/old-foo/new-foo/ge