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
Post a Comment