syrius.ml@xxxxxxxxxx wrote: > grep|awk|sed in one sed: > sed -ne '/define VDRVERSION/ { s/^.*"\(.*\)".*$/\1/; p }' config.h Mine is shorter! :P sed -ne '/define VDRVERSION/s/.*"\(.*\)".*/\1/p' config.h Cheers, Udo
syrius.ml@xxxxxxxxxx wrote: > grep|awk|sed in one sed: > sed -ne '/define VDRVERSION/ { s/^.*"\(.*\)".*$/\1/; p }' config.h Mine is shorter! :P sed -ne '/define VDRVERSION/s/.*"\(.*\)".*/\1/p' config.h Cheers, Udo