Bash script how to check if html file is empty?

1
Rex Goodwin asked a question: Bash script how to check if html file is empty?
Asked By: Rex Goodwin
Date created: Tue, Jun 1, 2021 4:16 AM
Date updated: Thu, Jul 21, 2022 5:44 PM

Content

Video answer: Check file type (file)

Check file type (file)

Top best answers to the question «Bash script how to check if html file is empty»

How do I check if a file is empty in Bash? You can use the find command and other options as follows. The -s option to the test builtin check to see if FILE exists and has a size greater than zero. It returns true and false values to indicate that file is empty or has some data.

Video answer: Using awk in linux to format output

Using awk in linux to format output

Your Answer

Video answer: Macos terminal (zsh)

Macos terminal (zsh)