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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -