Question: What does this Linux code do? if [ -e $1 ] then cat $1 else echo I am a new file >> $1 fi
What does this Linux code do?
if [ -e "$1" ]
then
cat $1
else
echo "I am a new file" >> $1
fi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
