Results 1 to 3 of 3

Thread: bash autocomplete in scripts

  1. #1
    Join Date
    Jun 2009
    Location
    Timisoara, Romania
    Posts
    190

    Question bash autocomplete in scripts

    Hello all,

    I have a question regarding the auto-completion in bash scripts.How can I implement this feature into my scrips?
    For example I wanna choose a file from a directory and I wanna use TAB to complete the names of the files from that directory.

    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: bash autocomplete in scripts

    printf "Provide the file: "
    read -e inputfile

  3. #3
    Join Date
    Jun 2009
    Location
    Timisoara, Romania
    Posts
    190

    Default Re: bash autocomplete in scripts

    Thanks a lot!

    Quote Originally Posted by microchip8 View Post
    printf "Provide the file: "
    read -e inputfile

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •