While i am trying to execute nawk in korn shell iam getting this error.
nawk: can't open file $directory../../../filename.
When the file is in home directory it is executing. But its not able to find file in other directory.
Thanks
While i am trying to execute nawk in korn shell iam getting this error.
nawk: can't open file $directory../../../filename.
When the file is in home directory it is executing. But its not able to find file in other directory.
Thanks
I guess your relative//absolute path is wrong....
why $directory is not expanded?
other possibility is if directory name is a variable, please double check to make sure it's having trailing "/".
(Assuming the filename is just filename).