echo process started
file_name="sample.txt"
cd /o1_appdata/home/scits/SC1E
if [ -f ${file_name} ]
then
echo "File exists. Document file validation passed.">logfile.txt
else
echo "Document file validation failed.">>logfile.txt
fi
答案 0 :(得分:-1)
如果检查你是否可以尝试检查,如果你提到它是#!/bin/bash
还是其他什么
echo process started
file_name="sample.txt"
cd /o1_appdata/home/scits/SC1E
if [ -f ${file_name} ] ;
then
echo "File exists. Document file validation passed.">logfile.txt
else
echo "Document file validation failed.">>logfile.txt
fi