I am trying to create a script to add an indent to a file. So I put this in my file called ind--
sed 's/^./\t&/' $*
When I run it my command is ind lines and it is supposed to open file lines and print it with an indent. Instead it gives an error no command ind found did i mean and then it gives 15 suggestions and then last line reads ind command not found. I am using putty and I just run it ind lines. I created script in vi
a. Can someone point out what is wrong and why it won't indent please??