This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Fri, 2007-09-14 at 14:11 +0200, Enrico Weigelt wrote: > bash_version=`/bin/bash --version |head -n 1 |cut -d ' ' -f 4|sed -e "s/\..*//g;"` You can do this all with sed more simply (imo): bash_version=`/bin/bash --version \ | sed -n -e '2,$d' -e 's/^.* version \([0-9]*\).*/\1/p'` -- ----------------------------------------------------------------------------- Paul D. Smith <psmith@netezza.com> http://netezza.com "Please remain calm--I may be mad, but I am a professional."--Mad Scientist ----------------------------------------------------------------------------- These are my opinions--Netezza takes no responsibility for them. -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |