I have to write a simple bash script in Ubuntu which would allow me to pass it some arguments and I want to check if these arguments which can contain spaces are files or directories. How can I do this?
I saved script as
karimov-danil@Karimov-Danil:~$ ./script.sh "Шаб лоны" "Обще доступные" "ta lk" Welcome to my script The First argument is a file or directory The second argument is a file or directory The third argument is a file or directory Bye!
Note: you should pass arguments inside double-quotes.