+ 1

Write a shell script for AIX where a file will execute next blocks if the location of it is matched with a specific location.

For example, /target/ is that specific location. If the location of the file is /target/ too, only then it will execute next blocks.

15th Aug 2022, 8:34 PM
Md. Asiful Hoque Prodhan
Md. Asiful Hoque Prodhan - avatar
1 Answer
0
next block? a block of code maybe? if so it sounds like you need a if condition that checks if the path exists DIR="/target/" if[ -d "$DIR" ]; then echo "path exists!" fi does that help? If not, please add more details to your question.
16th Aug 2022, 4:28 PM
Apollo-Roboto
Apollo-Roboto - avatar