04-24-2010
Posix test.
Ksh93
download.
Many of the *nix include only old ksh (=ksh88) = Posix done after ksh88.
Ksh93 test include your -e option.
I think that dash is only Posix full compatible. Include all posix features and nothing else.
Ksh93 include also Posix but it has also some extension, like bash and many others.
---------- Post updated at 11:45 AM ---------- Previous update was at 11:42 AM ----------
if [ -r "$fanme" ] or if [ -r "$fname" ] ?
My test -r works fine - testing have I read access or not.
10 More Discussions You Might Find Interesting
1. Programming
I am using gdb to examine a core file but the output contains only the method addresses in hex.
Is there anyway to translate these addresses to a human-readable form? :confused: (0 Replies)
Discussion started by: ciregbu
0 Replies
2. Shell Programming and Scripting
Hi,
I was wondering if there's a command in Linux that would check to see if a CD is inserted into CD-rom.
I am developing a shell script that would copy a file from CD rom. For this, I have to first verify if the CD has been inserted or not.
Can anyone help me?
Thanks,
Sundeep (1 Reply)
Discussion started by: eamani_sun
1 Replies
3. HP-UX
Hi,
Files coming to mailbox are in readable format?
Is there any special command to read these files.
suppose i have sent a file like this
megh$mailx -s "mesg" xyz@server.domain<file1.dat
can xyz directly read the file from his mailbox? (1 Reply)
Discussion started by: megh
1 Replies
4. SuSE
Currently we are doing the migration to unix to linux.
I am facing the new problem
kganeshb@its04489:~/scripts $ ls -l | more
total 340
-rw-r----- 1 kganeshb users 9038 Oct 22 13:23 109_db.txt
-rw-rw---- 1 dlc users 1413 Oct 10 17:40 1.txt
-rw-rw---- 1 kganeshb users 45 Jan 28 13:46 a... (2 Replies)
Discussion started by: kingganesh04
2 Replies
5. UNIX for Dummies Questions & Answers
In Unix/Ksh, when I try to look inside a file it says that the file may be a binary file and if I want to see it anyway. When i say 'yes', it shows me the content filled with unreadable symbols (looks like binary). Is there a command that I can run from the Unix prompt to convert/translate that... (3 Replies)
Discussion started by: arthurs
3 Replies
6. Shell Programming and Scripting
All,
I have a script where I get a filename as input and do some processing with the file that I got as input.
Requirement:
Now I have a requirement where I need to check the following:
If either of this goes wrong, the script should pop out a warning message.
I tried searching the... (6 Replies)
Discussion started by: bharath.gct
6 Replies
7. Shell Programming and Scripting
hi all,
in ksh script how do i detect if a file is readable by others ??
thanks. (6 Replies)
Discussion started by: cesarNZ
6 Replies
8. Programming
In the following code segment I write to some file using , but this write is not readable by me when i open the file. any helps would be thankful.
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<errno.h>
#include<fcntl.h>... (6 Replies)
Discussion started by: saman_glorious
6 Replies
9. Shell Programming and Scripting
Hi,
I have a file with below contents, 3 lines, all are PASS:
cat filetest.log
PASS
PASS
PASS
I would need to check this file to ensure the contents are remain unchanged with only 3 lines and 3 PASS as above, and should return 0 for every check, if any of these content are change then... (2 Replies)
Discussion started by: khchong
2 Replies
10. UNIX for Dummies Questions & Answers
When I do the file I get ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
I am almost 100% sure I was able to print a readable version of this file in the past but I cannot remember how. Is it possible to convert this file into something that can be read and or... (3 Replies)
Discussion started by: fsanchez
3 Replies
times(1) User Commands times(1)
NAME
times - shell built-in function to report time usages of the current shell
SYNOPSIS
sh
times
ksh
times
DESCRIPTION
sh
Print the accumulated user and system times for processes run from the shell.
ksh
Print the accumulated user and system times for the shell and for processes run from the shell.
On this man page, ksh(1) commands that are preceded by one or two * (asterisks) are treated specially in the following ways:
1. Variable assignment lists preceding the command remain in effect when the command completes.
2. I/O redirections are processed after variable assignments.
3. Errors cause a script that contains them to abort.
4. Words, following a command preceded by ** that are in the format of a variable assignment, are expanded with the same rules as a vari-
able assignment. This means that tilde substitution is performed after the = sign and word splitting and file name generation are not
performed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
ksh(1), sh(1), time(1), attributes(5)
SunOS 5.10 15 Apr 1994 times(1)