Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-18-2007, 10:18 PM   #1 (permalink)
Greg's Avatar
 
Indeed.

Join Date: Dec 2004

Posts: 1,554

Greg is on a distinguished road

Default Read Command and File Paths

If I'm writing a script where the user will be inputting a file path, would it be possible to use the 'read' command and allow the user to use tab to auto complete it?

Right now when you hit tab it will indent it.

Thanks,
~Greg
__________________
Greg is offline  
Old 03-20-2007, 01:09 AM   #2 (permalink)
Qiranworms's Avatar
 
Monster Techie

Join Date: Mar 2003

Posts: 1,637

Qiranworms is on a distinguished road

Default Re: Read Command and File Paths

Tab-completion in a bash script, right? I'm pretty sure it's possible because I seem to recall seeing it. Not sure how you would accomplish it. Off to Google (not exactly being clear or helpful here)

Edit: Is this helpful?
__________________
-->Marc
Error: Keyboard not attached. Please press F1 to continue. <pre>-------OS----------Gentoo Linux-------<br>------Browser-----Mozilla Firefox-----</pre><form action="http://www.srsyo.org/tfsearch.php" method="get"><input type="text" name="search"> <input type="submit" name="submit" value="Search the Forums, thanks to Emily"></form>

|||Official Forum Rules|||<hr>
Qiranworms is offline  
Old 03-20-2007, 06:56 PM   #3 (permalink)
Greg's Avatar
 
Indeed.

Join Date: Dec 2004

Posts: 1,554

Greg is on a distinguished road

Default Re: Read Command and File Paths

Wow, that really confuses me I think that's on the right track, now how would I go about adding that to a script? I tried a couple different things to no avail.

Hmm...

Thanks for the info, I'll keep working at it
__________________
Greg is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On