You can use printf to format the number to 2 decimal places and include thousand separators: ---------- Post updated at 17:16 ---------- Previous update was at 17:13 ----------
Hi,
I worte a script which runs perfect when i execute it manually. But when i scheduled into cron the grep command alone is not working.
the sample script,
/usr/bin/grep FTP $subfile > /tmp/tfsrec.dat
tfs=`echo $?`
if
then
echo "FTP FOUND"
else
echo "FTP NOT FOUND"
Where... (5 Replies)
Hi Folk,
Following is the command I used to get data related to the DataFlowEngine.
I wanted to know the % usage of cpu and memory.
ps avg | grep Data
This command will show the processes with its PID as :
PID TTY STAT TIME PGIN SIZE RSS LIM TSIZ TRS %CPU %MEM COMMAND
... (1 Reply)
Dear users,
I googled for a while, but i have got a lot of different answers regarding a simple unix command.
lets say there are a lot of files in a directory.
How can i list the files in a directory whose file types is "text"?
Thank you in advance (4 Replies)
Hi Folks,
I am new to ksh, i have informatica parameter file that i need to update everyday with shell script. i need your help updating this file with new parameters.
sample data
$$TABLE1_DATE=04-27-2011
$$TABLE2_DATE=04-23-2011
$$TABLE3_DATE=03-19-2011
.......Highligned... (4 Replies)
Dear All,
Could you help me how to put to the next line if I have pattern below in Perl language.
Data-123 Linux MacOSData-124 windows FreeBSDData-125 OpenBSD NetBSD
I would the output below:
Data-123 Linux MacOS
Data-124 windows FreeBSD
Data-125 OpenBSD NetBSD
... (2 Replies)
Hi all,
My sample file is something like this,
ORA-00206: Message 206 not found; product=RDBMS; facility=ORA
ORA-00202: Message 202 not found; product=RDBMS; facility=ORA
ORA-27063: Message 27063 not found; product=RDBMS; facility=ORA
ORA-00206: Message 206 not found; ... (1 Reply)
Hi,
I have below script
PROJECT_NAME=UDL/UDL_Weekly
sub= echo ${PROJECT_NAME}|cut -d "/" -f2
cat pr.sh|mail -s "`hostname`: $sub failed" sonu.pal@xyz.com
While running the script I am receiving the subject line in mail as " podetlsapp01: failed' instead of " podetlsapp01: ... (1 Reply)
I am running a mailx command as follows in Linux:
mailx -s "Elapsed Time: " ora_dbas < $RUNDIR/sql_timings.out
I am trying to parse the file "sla_local_sql_timings.out" for the word Elapsed Time: and get the time from that file stored in a variable and display that variable in the subject... (4 Replies)
Discussion started by: vrkcamry
4 Replies
LEARN ABOUT MOJAVE
asxprintf
XPRINTF(3) BSD Library Functions Manual XPRINTF(3)NAME
asxprintf, dxprintf, fxprintf, sxprintf, xprintf, vasxprintf, vdxprintf, vfxprintf, vsxprintf, vxprintf -- extensible printf
SYNOPSIS
#include <printf.h>
int
asxprintf(char ** restrict ret, printf_domain_t restrict domain, locale_t restrict loc, const char * restrict format, ...);
int
dxprintf(int fd, printf_domain_t restrict domain, locale_t restrict loc, const char * restrict format, ...);
int
fxprintf(FILE * restrict stream, printf_domain_t restrict domain, locale_t restrict loc, const char * restrict format, ...);
int
sxprintf(char * restrict str, size_t size, printf_domain_t restrict domain, locale_t restrict loc, const char * restrict format, ...);
int
xprintf(printf_domain_t restrict domain, locale_t restrict loc, const char * restrict format, ...);
#include <stdarg.h>
int
vasxprintf(char ** restrict ret, printf_domain_t restrict domain, locale_t restrict loc, const char * restrict format, va_list ap);
int
vdxprintf(int fd, printf_domain_t restrict domain, locale_t restrict loc, const char * restrict format, va_list ap);
int
vfxprintf(FILE * restrict stream, printf_domain_t restrict domain, locale_t restrict loc, const char * restrict format, va_list ap);
int
vsxprintf(char * restrict str, size_t size, printf_domain_t restrict domain, locale_t restrict loc, const char * restrict format,
va_list ap);
int
vxprintf(printf_domain_t restrict domain, locale_t restrict loc, const char * restrict format, va_list ap);
DESCRIPTION
These extensible printf (see xprintf(5)) variants behave like their normal printf counterparts (see printf(3)) without 'x' in the name
(except sxprintf() and vsxprintf() behave like snprintf() and vsnprintf(), respectively).
The domain argument must be a pointer to a printf domain structure, as returned by one of the functions described in xprintf_domain(3). The
loc argument should be an extended locale (see xlocale(3)) or NULL, which means to use the current locale in effect (either the per-thread
locale if set, or the global locale by default).
SEE ALSO printf(3), xlocale(3), xprintf_domain(3), xprintf(5)Darwin Aug 19, 2012 Darwin