Search results

  1. C

    Bash Scripting

    Here is the script from start to finish. I may be overthinking it, but wanted a user to enter the correlating number to the file.
  2. C

    Bash Scripting

    Below is a example of what I am trying to do. I can change $number to $filename and it works fine. Was just trying to clean it up for a single keystroke to eliminate user error. Some of my users won't read any errors. #! /bin/bash #list contents of directory using numbers cd <path> && ls |...
  3. C

    Bash Scripting

    I have a script with <ls | grep ".*.fileext" | nl> the intent is for a user to select a number associated with the file, like the output below, to finish executing the script. I can already have them type in the filename and finish the script. I am attempting to google it, but not sure I have...
Top