Script error?

stjude1982

New Member
Joined
Aug 9, 2018
Messages
12
Reaction score
3
Credits
82
Can anyone tell me why simple file report script as below, works if I type out full path name, or even using '.' for current directory but will not allow use of '~' for home directory? See screenshot of script running below, also:

1596693647962.png

1596693759093.png

Any help understanding this would be greatly appreciated, thank you.
 


Add -x behind the shebang to debug the script or just run the script like this:
Code:
bash -x filereport.sh
It will then literally give you output of what it is executing and that way you can see where it's going wrong.
 
Oh, thank you - I'll give that a try. I am new to this, so may not understand it.
 

Members online


Latest posts

Top