linux - Bash Shell Script that asks user to enter a file and then modifies said file -


I am just beginning and I was wondering how to create a script that the user should enter a file To modify, file the recorded file and then modify it with the set parameter.

  #! / Bin / bash read -p "Enter file name:" fname $ fname #output: #Enter File name: foo.txt # foo.txt    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -