how to delete content in a file (delete content only)

Hi Friends

I have a file called processLog.txt file

processLog.txt
---------------
echo "line starts "$LINE
suppCode=${LINE:0:3}
#gatewayArchive=`scp root@mrp-gateway:/usr/local/apache/data/PLAT/MIMUS/upload/PROD/archive/112042708173000.txt /home/krishnaveni/scripts/tempFolder`
#echo "gateway files :"$gatewayArchive
#file1=$suppCode$DtTime"*.txt"
file1="112042708173000.txt"
echo "file1 :"$file1
#
# checking files in sftp server
#
find_sftp_files $file1
--------------------------

once my task has done
just i need to delete content of that log file

i need to delete only content not file
is it possible
please help me from this problem

Thanks
Krish.

cat /dev/null > processLog.txt

Thank you so much
it helpmed a lottttttt........:slight_smile:

Shorter

echo > file.name

Or

>file.name

Both of those produce empty files.

This produces a file with one character.