The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
export equivalent command in PERL ammu Shell Programming and Scripting 1 09-17-2007 12:46 PM
equivalent of ptree command in zsh dhams Shell Programming and Scripting 3 09-11-2007 04:07 PM
Command equivalent to DOS mode for SCO 5.0.6 jgt UNIX for Advanced & Expert Users 3 05-11-2007 04:10 AM
SQL Spool equivalent command in DOS stevefox Windows & DOS: Issues & Discussions 2 01-17-2006 06:18 PM
stat command emreatlier Shell Programming and Scripting 2 08-14-2003 01:03 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-27-2007
Registered User
 

Join Date: Nov 2007
Posts: 15
Equivalent command to 'stat'

Can anyone tell me which is the equivalent command to
'stats' in ksh shell which discribes the file system?


Thanks in advance


Regards,
Im_new
Reply With Quote
Forum Sponsor
  #2  
Old 12-27-2007
Read Only
 

Join Date: Nov 2007
Posts: 165
What's "stats" (OS, example, etc.)?
Reply With Quote
  #3  
Old 12-27-2007
Registered User
 

Join Date: Nov 2007
Posts: 15
stat -c %s test.txt
this command gives me size of the test.txt on GNU/Linux
But on Sun sol I'm nt bale to use this command.
Need equivalent command to it...

Thanks

im_new
Reply With Quote
  #4  
Old 12-27-2007
Registered User
 

Join Date: Sep 2006
Posts: 1,580
here you go
Code:
# du -b file |cut -f1
or
Code:
# ls -l file| awk '{print $5}'
or
Code:
# wc -c file | cut -f1

Last edited by ghostdog74; 12-27-2007 at 03:34 AM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0