Op zaterdag 24-07-2010 om 20:54 uur [tijdzone +0200], schreef Matej Urban: > On Fri, Jul 23, 2010 at 9:54 PM, Wouter Bolsterlee <wbolster gnome org> wrote: > > Perhaps git writes to stderr instead? Try this: > > > > $ git pull 2>&1 | tail -n1 > > > > ...instead. > > I have no idea what 2>&1 stands for, but it works! > I successfully combined it with egrep to do the job. 2>&1 means that the stderr (file descriptor 2) gets redirected (>) to stdout (file descriptor &1), so that subsequent programs (e.g. grep) actually see the input when your shell pipes git's stdout into grep's stdin. > Really big thanks! You're welcome. — Wouter
Attachment:
signature.asc
Description: This is a digitally signed message part