I have a file named "file" in my current directory. I want to check the type of this using file command and variables. I created this script:
name="file"
file $name
but it is giving this error:
: cannot open `file\015\015' (No such file or directory)