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 via. Can someone point out what is wrong and why it won't indent please??
SED with shell script giving error
linux
#! /bin/shsed -e 's/^/\t/' $@No need for the . or the & in the search or replace part.Save as ./ind and make executable with chmod +x ./ind.  run as ./ind lines.  optionally mv ./ind to somewhere in your $PATH so you can run it from anywhere.  (e.g. add ~/bin to your PATH and mv ./ind ~/bin/