로딩
요청 처리 중입니다...

More list commands - lsearch, lsort, lrange

 More list commands - lsearch, lsort, lrange

Lists can be searched with the lsearch command, sorted with the lsort command, and a range of list entries can be extracted with the lrange command. lsearch list pattern Searches list for an entry that matches pattern, and returns the index for the first match, or a -1 if there is no match. By default, lsearch uses "glob" patterns for matching.

See the section on globbing. lsort list Sorts list and returns a new list in the sorted order. By default, it sorts the list into alphabetic order.

Note ...