Hello, On Fri, Jul 23, 2010 at 9:54 PM, Wouter Bolsterlee <wbols...@gnome.org> wrote: > Op woensdag 21-07-2010 om 21:40 uur [tijdzone +0200], schreef Matej > Urban: > is it possible to "grep" the git commands? OR HOW do I output only the >> last line of git command. >> >> I want git pull to only output the last line usually something like >> - X files changed, XXX insertions(+), XXX deletions(-) >> - Already up-to-date. >> >> or when using git push only >> - 45604564 master -> master >> ... >> >> I tried various variations of git pull | tail -1 >> > 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. Really big thanks! M! > > — Wouter > _______________________________________________ gnome-i18n mailing list gnome-i18n@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-i18n