04-05-2012
It is faster to use shell builtins than external utilities when you can, especially when processing tiny amounts of information. External utilities can run quite quickly once loaded but take time and resources to start and finish.
10 More Discussions You Might Find Interesting
1. Programming
hi,
I just started to work on unix,
I was wondering if it is possible to call a c++ function from a script.
now, i don't mean starting a program, i mean dynamicaly calling a funtion (like working with a dll)
thanks (3 Replies)
Discussion started by: Lebamb
3 Replies
2. Shell Programming and Scripting
Hi folks,
I'm just running through an oreilly korn shell book but have witnessed an output difference on my own unix machine and the output provided in the book. Can anyone help?
create a script called ascript as follows:
function afunc {
print in function $0: $1 $2
var1="in... (16 Replies)
Discussion started by: beckett
16 Replies
3. Shell Programming and Scripting
Hi,
Can we define a function say func1 in a script 1.sh and call this function from another script say 2.sh by passing an argument :confused: (2 Replies)
Discussion started by: jisha
2 Replies
4. Shell Programming and Scripting
:confused:Hi ,
I have a script as shown below:
rpttxt()
{
name="$*"
awk '/'"${name}"'/ {print $2 $3"=" $4}' file.txt
}
xx = rpttxt "COL_HEAD_1"
awk 'BEGIN {printf("%36s \n ","'"$xx"'")}'
rpttxt() is a function..I want to store the final result of this function in... (3 Replies)
Discussion started by: jisha
3 Replies
5. UNIX for Dummies Questions & Answers
i have a function defined in one ksh (ksh 1)
i want to use that function in another ksh (ksh 2)
i am using
. $<directoryname>/<ksh name>
i am calling the function defined in ksh 1 in ksh 2
i want the returnstatus from the above operation
but it is not executing the function
what i... (1 Reply)
Discussion started by: trichyselva
1 Replies
6. Shell Programming and Scripting
Hi,
I have searched the forum for the query, But i didnt find an exact answer.
I have a script(1.sh) and a c program(sample.c)
sample.c contains many function definitions.( run(), find(), add() etc).
I want to call functions in sample.c from 1.sh and use the return value in 1.sh... (3 Replies)
Discussion started by: jisha
3 Replies
7. Shell Programming and Scripting
Hi,
Is it possible to call a c function defined in a .c file from a pearl script?
How is this possible?
Thannks in advance,
JS (2 Replies)
Discussion started by: jisha
2 Replies
8. Shell Programming and Scripting
This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord
but only one record is getting wrote in DB.... Please advise ASAP...:confused:
function InsertFtg
{
FTGSTR=""
echo "Saurabh is GREAT $#"
let... (2 Replies)
Discussion started by: omkar.sonawane
2 Replies
9. Shell Programming and Scripting
In the below bash the function execute is started with the while true at the end of the script. Currently, this works and processing does begin. The function panel in bold does not get called after execute completes, therefore the user does not get the menu selection and the files just loop... (3 Replies)
Discussion started by: cmccabe
3 Replies
10. Shell Programming and Scripting
Hi
I need to call a function in database and update the return value of that function with a value in csv file.
test.csv
1,2,3,,5,,,8,9,10
1,2,3,4,5,,,8,9,10
1,2,3,,,,,8,9,10In the above file I want to replace column 2 with a value extracted from database
like (select student_id from... (3 Replies)
Discussion started by: kev94
3 Replies
LEARN ABOUT SUNOS
intltoolize
intltoolize(1) User Commands intltoolize(1)
NAME
intltoolize - prepare a source code tree to use the intltool utilities
SYNOPSIS
intltoolize [--automake] [--copy] [--debug] [--dry-run] [--force] [--help] [--version]
DESCRIPTION
intltoolize prepares a package to use the intltool utilities. intltoolize links or copies various files needed by the intltool utilities to
the appropriate location, for use when building the package. You must change your working directory to the top-level directory of the pack-
age before running intltoolize.
OPTIONS
The following options are supported:
--automake Work silently, and assume that Automake is in use.
--copy Copy files, instead of creating symbolic links to the files. You can also use -c to specify this option.
--debug Enable verbose shell tracing.
--dry-run Print the commands but do not run the commands. You can also use -n to specify this option.
--force Replace existing files. You can also use -f to specify this option.
--help Show usage and basic help information.
--version Show version information.
EXAMPLES
Example 1: Using intltoolize and the intltool Utilities
To use intltoolize and the intltool utilities, perform the following steps:
1. Install intltool. Ensure that the macro installed by intltool is in the aclocal path, or run the following command
example% export ACLOCAL_FLAGS='-I /usr/local/share/aclocal'
2. Add the following lines to the autogen.sh file, after the call to gettextize:
echo "Running intltoolize"
intltoolize --copy --force --automake
3. Add the following line to the configure.in file, near the top of the file:
AC_PROG_INTLTOOL([minimum required version])
4. Add intltool-extract.in, intltool-merge.in, and intltool-update.in to the EXTRA_DIST entry in your top-level Makefile.am file, and also
to the top-level .cvsignore file. Also add the non-.in versions to the .cvsignore file.
5. Remove the po/desk.pl and po/update.* scripts, if present in your source tree. The intltool-update utility will perform equivalent
functions.
At this point, translatable strings will be automatically extracted to the .po files.
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/intltoolize The command-line executable for the application.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-common-devel |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
intltool-extract(1), intltool-merge(1), intltool-prepare(1), intltool-unicodify(1), intltool-update(1)
NOTES
For more information, see the I18N-HOWTO file, which is provided with the intltool source code.
Updated by Damien Donlon, Sun Microsystems Inc., 2003. Written by Darin Adler, Kenneth Christiansen, Maciej Stachowiak.
SunOS 5.10 3 Apr 2003 intltoolize(1)