|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Checking the file for non-zero byte
Hi,
An 'If' clause has to be executed if file1.txt has any contents in it. Suggest us... |
| Sponsored Links |
|
|
|
|||
|
for perl: Code:
print "file ->sample.txt<- is of size non zero" if ( -s "./sample.txt" ); Refer: File Test Operators |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove a byte(Last byte from the last line) | vinayrao | Shell Programming and Scripting | 1 | 02-04-2009 05:18 PM |
| ftp 0 byte file | jjmill1979 | UNIX for Dummies Questions & Answers | 1 | 09-05-2008 12:52 PM |
| Check if 2 files are identical byte-to-byte? | krishmaths | Shell Programming and Scripting | 4 | 09-04-2008 02:37 AM |
| zero byte file | dsdev_123 | AIX | 2 | 03-20-2008 10:50 AM |
| 0 byte file with no name???? | miltonkeynesguy | Shell Programming and Scripting | 5 | 08-17-2007 09:01 AM |