I'm trying to get the size of each file, but when I try to use
I get the message
Also, the man page for stat shows readlink,stat. It doesn't seem to match the man pages I've seen online.
what is going on here?
This means that the same utility can be called with two different names and depending on with which name it was called, it behaves in a certain way. My guess is your online man page differs from your system's man page?
What operating system, and version, are you using? Not all stat commands support the -c option. It is supported on my SUSE Linux box, but not on my FreeBSD box. Check the man page for the specific system you are dealing with.
---------- Post updated at 12:25 ---------- Previous update was at 12:24 ----------
Forgot to mention that under BSD the option is -f.
Using OS X 10.6.8. I guess this version of stat is very different. I'll dig through the manual a bit more, but if anyone is familiar with how stat works on 10.6.8, maybe you can point me in the right direction!
Thank you. I never would have figured that out. Mainly because I never would have thought to put the "%z" in quotes. Is this to keep the shell from expanding %?
Hi.
I'm trying to install VMWare Workstation to run a virtual machine on my Mac OS, but running the bundle from bash(xterm)
sh VMware-workstation-Full-11.0.0-2305329.x86_64.bundle
(as suggested in install guide)
comes up with error:stat: illegal option -- -
usage: stat
Digging... (5 Replies)
For some reason read -e isn't working in my script. I need a directory as input from a user and I'd like for them to be able to use tab complete which is why I'm using -e. When the script is run, I get:
read: line 6: illegal option -e
In order to just figure out what is going on with the -e... (4 Replies)
hello. i have a script, but in solaris i get this message sed: illegal option -- i
whats wrong? With Ubuntu there is no problem. Thanks for help.
#!/bin/bash
for file in $(find /directory..../Test/*.txt -type f)
do
head -n 1 $file | egrep '^#!'
if
then
sed -i '2i\Headertext'... (3 Replies)
Hi All,
Is it possible to run date -d option in Solaris?
Do we have a work around so that -d option will be recognized
by solaris as it is recognized by linux.
I need this since i am using this in scripting and it works in Linux box. my problem is
it doesn't work in solaris box.
... (6 Replies)
Hi all,
I just implemented PAM on my Solris 8/9 boxes and one of the entries I have got in the /etc/pam.conf is as followed,
other password required pam_unix.so nullok remember=7 md5 shadow use_authtok
However, once I set this and the following meesages appears in /var/adm/messages... (1 Reply)