I would like to check if both files exist, but I am getting
test.sh: line 3: [: missing `]\'
Can anyone see what\'s wrong?
#!/b
[[ is bash-specific syntax. For POSIX-compatible shells, you need:
[[
[ -f file1 ] && [ -f file2 ]