Josh Rehman wrote:
Hi,

I was wondering if it is possible to grep through the output of bash command line completion. If you type "k" and then tab twice, you'll be asked to show all 398,499 entries on your path, y or n. Hit y and a big list comes up. Seems like it would be nice to search through that list, but there is no obvious way to pipe it to anything (like grep).

'script' lets you log complete sessions to a file.


You could to something like (Sorry for the german output):

[EMAIL PROTECTED]:~$ script
Script wurde gestartet, die Datei ist typescript
[EMAIL PROTECTED]:~$ k<TAB><TAB>
Display all 162 possibilities? (y or n) y
[...]
[EMAIL PROTECTED]:~$ exit
Script wurde beendet, die Datei ist typescript
[EMAIL PROTECTED]:~$ less typescript

HTH,

Stefan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to