Posted: 9/26/2006 6:57:36 AM EDT
|
and yes its posted in the techie area too... im checking to see if a file has more than 0 bytes and if so FTP it over to the production box. ive got <snip> filesize= du -b file_to_process.rst if [ filesize <= 0 ]; then ftp (snip) fi <snip> well the problem is the value in $filesize. i want a number to compare to zero. but the du command (and wc ) output for example: # 123 .file_to_process.rst anyone know of any command to give me just the number without the file name? or any other ideas? |
filesize= du -b file_to_process.rst | cut -f2 -d" " ETA: Oops, filesize you said ETA2: Now its working |
