Re: bash tab variable expansion question?

2011-09-07 Thread Chet Ramey
> >complete -o default -F _longopt ls
> 
> Thanks Chet.  The following does give me Variable Bash Completion:
> 
> complete -o bashdefault -F _longopt ls

You might want both -o bashdefault and -o default.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/



Re: how to extract an array and sorted by the array

2011-09-07 Thread Pierre Gaston
On Wed, Sep 7, 2011 at 7:43 AM, lina  wrote:

> (...)
> I wish the fied 2 from file 2 arranged the same sequence as the field
> 2 of file 1.
>
> Thanks
>
> (...)
>

For very general scripting questions like these, prefer the comp.unix.shell
group, this list is primarily about bugs in bash.