in other languages using substring and index string functions would make it easy, but bash has few unified shell functions.
csh or ksh might be a better option, but it can be done in bash or sh with a lot of effort. On Sun, Sep 21, 2014 at 4:06 PM, andrew mcelroy <[email protected]> wrote: > Greetings all, > > This is probably a dumb questions, but I am writing a basic shell > script that is passing $@ to a command. The issue is I'd like to > filter $@ so that it does not pass a specific flag ( in this case > --xcode-dir) ? How can I drop this in a bash script? > > Andrew McElroy > > -- > -- > You received this message because you are subscribed to the Google Groups > "NLUG" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nlug-talk?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "NLUG" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- ><> ... Jack "Whatever you do, work at it with all your heart"... Colossians 3:23 "If you are not part of the solution, you are part of the precipitate" - Henry J. Tillman "Anyone who has never made a mistake, has never tried anything new." - Albert Einstein "You don't manage people; you manage things. You lead people." - Admiral Grace Hopper, USN "a nanosecond is the time it takes electrons to propigate 11.8 inches" - " - http://youtu.be/JEpsKnWZrJ8 "Life is complex: it has a real part and an imaginary part." - Martin Terma -- -- You received this message because you are subscribed to the Google Groups "NLUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nlug-talk?hl=en --- You received this message because you are subscribed to the Google Groups "NLUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
