From 8bc2cf1b2e2c6338b54ae6a26c572e7ea808859a Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Wed, 13 Jul 2011 23:33:19 +0200 Subject: [PATCH] solve your (CLI) problem via the web --- shell_scripts/error_search | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 shell_scripts/error_search diff --git a/shell_scripts/error_search b/shell_scripts/error_search new file mode 100755 index 0000000..16f274e --- /dev/null +++ b/shell_scripts/error_search @@ -0,0 +1,13 @@ +#!/bin/sh +if [ $# -lt 1 ] +then + echo "usage: my_failing_cmd 2>&1 > /dev/null | error_search" + exit; +fi + +echo $1 | sed "s/.*/'\0'/" | xargs firefox -new-tab -search +# possible to use xdg-open or sensible-browser *IIF* they supporte search + +# consider using a shell error stack if that exist +# consider using specific search engine (e.g. code repository) according to the current directory +## e.g. pwd | grep project case ... esac