On Sat, Jul 24, 2010 at 11:26 PM, Wouter Bolsterlee <wbols...@gnome.org> wrote: > 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 <wbols...@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.
Well, I'm more on the concrete side of understanding this :) Thanks, Matej > >> Really big thanks! > > You're welcome. > > — Wouter > _______________________________________________ gnome-i18n mailing list gnome-i18n@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-i18n