Answer the question
In order to leave comments, you need to log in
How to auto-select to enter the path to the file in the bash script?
Tell me how to make auto-selection to enter the path to the file in the script.
The read command is executed which needs to be fed the path to the file. As an example, this script
#!/bin/bash
echo "Enter the file path."
read file
filesize=”$(stat -c %s $file)
echo "$file is precise $filesize bytes."
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question