Hi all,
Is there a tool to tidy up shell script source file and reformat it. Preferably I am looking for a perfect tool to do this.
Also I have heard it is possible to do with emacs editor but unfortunately it is looking very different and new from vi. Emacs is new to me and I could not find... (1 Reply)
Hi
I am having a script which sets the application environment. In this script i am sourcing the applications env file, when i am debugging the script i see its executing all the environment values and all the variable values are set properply.
Once this main shell script executes, then... (4 Replies)
Hi ,
I have a text file text.txt which contains values as
ULTRA,OTHERS,Mumbai,16912
ULTIMATE,OTHERS,Mumbai,16913
ULTIMATIUM,OTHERS,Mumbai,16914
I want to read the file line by line and create insert scripts like
INSERT INTO TAB ( DESC,PLACE,NUMBER ) VALUES... (3 Replies)
Greetings to all.I am new to the forum as well as to UNIX as well.I have a jsp file which has the following
selectedStartMonth = request.getParameter( "startMonth" );
selectedStartDay = request.getParameter( "startDay" );
selectedStartYear = request.getParameter( "startYear" );... (3 Replies)
Hi all,
OS: Solaris 10
I've written a script to scan the oratab file and give me a list of Oracle SIDs to choose from, and obviously in order to set the ORACLE_SID environment variable from within a script for the current shell, the script must be run as a source file.
When I run it as a... (1 Reply)
Hello to all,
I am looking for a way to display only the names of function (calls & definition) of a C++ source code.There is already a post related to this, but the script is to find the functions using a specific variable, and the replies are not that convincing since they cannot be used for... (2 Replies)
Hello,
I am writting a procedure in shell script as,
set serveroutput on
declare
date_gen DATE := $DATEGEN;
begin
INSERT INTO TBL1 ( EMPNAME,EMPID,EMPBDATE)
VALUES($EMPNAME,$EMPID,TO_DATE(date_gen,'YYYY-MM-DD'));
end;
/
Where DATEGEN is unix string variable which I need to use into... (10 Replies)
Hi,
I am new to shell scripting. I need a bash shell scripts which search and grep a parameter value from input.txt file and insert it in between two semicolon of second line of output.txt file.
For example
The shell script search an IP address as parameter value from input.txt ... (2 Replies)
Hi,
ls -ltrq res.file
-rwxrwxr-x 1 ora install 4278 Nov 30 07:19 res.file
$ more test.sh
source res.file
$ ./test.sh
./test.sh: .: res.file: cannot open
$ id
uid=600000014(ora) gid=63855(install)
uname -a
SunOS mymac 5.11 11.2 sun4v sparc sun4v
The same thing works fine on a... (7 Replies)
Discussion started by: mohtashims
7 Replies
LEARN ABOUT MOJAVE
xprintf_exec
XPRINTF_EXEC(3) BSD Library Functions Manual XPRINTF_EXEC(3)NAME
asxprintf_exec, dxprintf_exec, fxprintf_exec, sxprintf_exec, xprintf_exec, vasxprintf_exec, vdxprintf_exec, vfxprintf_exec, vsxprintf_exec,
vxprintf_exec -- execute-only extensible printf execution
SYNOPSIS
#include <printf.h>
int
asxprintf_exec(char ** restrict ret, printf_comp_t restrict pc, ...);
int
dxprintf_exec(int fd, printf_comp_t restrict pc, ...);
int
fxprintf_exec(FILE * restrict stream, printf_comp_t restrict pc, ...);
int
sxprintf_exec(char * restrict str, size_t size, printf_comp_t restrict pc, ...);
int
xprintf_exec(printf_comp_t restrict pc, ...);
#include <stdarg.h>
int
vasxprintf_exec(char ** restrict ret, printf_comp_t restrict pc, va_list ap);
int
vdxprintf_exec(int fd, printf_comp_t restrict pc, va_list ap);
int
vfxprintf_exec(FILE * restrict stream, printf_comp_t restrict pc, va_list ap);
int
vsxprintf_exec(char * restrict str, size_t size, printf_comp_t restrict pc, va_list ap);
int
vxprintf_exec(printf_comp_t restrict pc, va_list ap);
DESCRIPTION
These functions are execute-only, extensible printf (see xprintf(5)) variants, taking a printf_comp_t structure created by the format string
compilation routine new_printf_comp(3). All these variants behave like their normal printf counterparts (see printf(3)) without 'x' and
``_exec'' in the name (except sxprintf_exec() and vsxprintf_exec() behave like snprintf() and vsnprintf(), respectively).
SEE ALSO printf(3), xprintf_comp(3), xprintf(5)Darwin Aug 19, 2012 Darwin