unix - check if file is empty or not -


how check if file empty in korn script

i want test in korn script if output csv file empty or not , if not empty should give count of values. thanks.

the test(1) program has -s switch:

-s file       file exists , has size greater 0 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -