3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 4008
/ 3 Years ago, tue, may 11, 2021, 2:37:24
I'm trying to check some files existence using -f command followed by the file bath but I have an error. This is my script:
initUCounter="/home/teeba/users_counter_initial_value"
initPCounter="/home/teeba/number_of_processes"
if [! -f $initUCounter && ! -f $initPCounter]
then
echo "0" > /tmp/users_counter_initial_value
echo "1" > /tmp/processes_counter_initial_value
fi
More From » bash