12-18-2019
Two times thank you, Scrutinizer!
I didn't yet discover the
%b or thought it's a GNUism. But seems to be standard.
Now I set
IFS=" " in a sub shell.
I have implemented the fixes in my original post.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Student have huge interest about why so many expert choose use UNIX than MS Windows.
I consider that SHARE & OPEN is key point.:) (2 Replies)
Discussion started by: 111000
2 Replies
2. Solaris
I need to use tip from machine A serial port to machine B serial port. Can someone point me to an example of the correct cable to use?
Thanks. (1 Reply)
Discussion started by: dangral
1 Replies
3. Shell Programming and Scripting
I am about to do a script that change the COST so i dont need to change each cost.
The output looks like this.
"OL_ID OL_LINK_COST
----------- ------------
51 10
52 10
53 10
54 10
55 ... (3 Replies)
Discussion started by: maskot
3 Replies
4. Solaris
plz explain TIP in solaris in detail. (11 Replies)
Discussion started by: karman0931
11 Replies
5. Shell Programming and Scripting
So in my shell i execute:
{ while true; do echo string; sleep 1; done } | read line This waits one second and returns.
But
{ while true; do /bin/echo string; sleep 1; done } | read line continues to run, and doesn't stop until i kill it explicitly.
I have tried this in bash as well as zsh,... (2 Replies)
Discussion started by: ulidtko
2 Replies
6. UNIX for Dummies Questions & Answers
Bit of a weird one i suppose, i want to use an echo inside an echo... For example...
i have a script that i want to use to take users input and create another script. Inside this script it creates it also needs to use echos...
echo "echo "hello"" >$file
echo "echo "goodbye"" >$file
... (3 Replies)
Discussion started by: mokachoka
3 Replies
7. Shell Programming and Scripting
Hello,
I'm just starting working on it. I'd like to get a tip
For istance if I have a file like:
a b c
d e f
....
and I wanna get:
1a & 2b & 3c
0d & 8e & 4f
.....
I would like to use sed and come up with a regular expression that works.... (3 Replies)
Discussion started by: Dedalus
3 Replies
8. Shell Programming and Scripting
echo `echo ` doesn't echoes anything. And it's logic. But
echo `echo `echo ` ` does echoes "echo". What's the logic of it? the `echo `echo ` inside of the whole (first) echo, echoes nothing, so the first echo have to echo nothing but echoes "echo"
(too much echoing :P):o (2 Replies)
Discussion started by: hakermania
2 Replies
9. Shell Programming and Scripting
How do I find a key word in multiple files.. in a directory.. ?
cat *.doc | grep -i myword? (7 Replies)
Discussion started by: hamon
7 Replies
10. Solaris
Prerequisite:
• S7-2L Server Hardware Console Access
• Solaris 11.3 OS and LDOM Packages (Ex: 3.4)
• Setup IPS Repositories
Solaris 11 comes with Oracle VM server pre-installed if older version is there remove the old and install latest Oracle VM... (1 Reply)
Discussion started by: mahendra170
1 Replies
TIMES(P) POSIX Programmer's Manual TIMES(P)
NAME
times - write process times
SYNOPSIS
times
DESCRIPTION
The times utility shall write the accumulated user and system times for the shell and for all of its child processes, in the following
POSIX locale format:
"%dm%fs %dm%fs
%dm%fs %dm%fs
", <shell user minutes>,
<shell user seconds>, <shell system minutes>,
<shell system seconds>, <children user minutes>,
<children user seconds>, <children system minutes>,
<children system seconds>
The four pairs of times shall correspond to the members of the <sys/times.h> tms structure (defined in the Base Definitions volume of
IEEE Std 1003.1-2001, Chapter 13, Headers) as returned by times(): tms_utime, tms_stime, tms_cutime, and tms_cstime, respectively.
OPTIONS
None.
OPERANDS
None.
STDIN
Not used.
INPUT FILES
None.
ENVIRONMENT VARIABLES
None.
ASYNCHRONOUS EVENTS
Default.
STDOUT
See the DESCRIPTION.
STDERR
The standard error shall be used only for diagnostic messages.
OUTPUT FILES
None.
EXTENDED DESCRIPTION
None.
EXIT STATUS
Zero.
CONSEQUENCES OF ERRORS
Default.
The following sections are informative.
APPLICATION USAGE
None.
EXAMPLES
$ times
0m0.43s 0m1.11s
8m44.18s 1m43.23s
RATIONALE
The times special built-in from the Single UNIX Specification is now required for all conforming shells.
FUTURE DIRECTIONS
None.
SEE ALSO
Special Built-In Utilities
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE
/The Open Group 2003 TIMES(P)