ファイルにコンテンツがまったく含まれていないことを確認する方法。[ -s $file ] ファイルがゼロバイトであるかどうかを示しますが、空の行を含むデータがなく、ファイルが完全に空であるかどうかを知る方法は?
$cat sample.text
$ ls -lrt sample.text
-rw-r--r-- 1 testuser userstest 1 Jul 31 16:38 sample.text
When i "vi" the file the bottom has this - "sample.text" 1L, 1C