Updated: 17 May 2023
Delete all contents from a file
cat /dev/null > the.file
# or
echo -n > the.file
Freelance software engineer United Kingdom
Updated: 17 May 2023
Delete all contents from a file
cat /dev/null > the.file
# or
echo -n > the.file