04-11-2014
you can have a separate directory with all your library files, and specify absolute/relative paths for libs and a -f for your 'core' script. [not sure I'm addressing your concern tho
]
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to remove the '&' from a file.
In each line of the file, the fields are separated by ^K.
I only want to remove '&' if it exists in field number 9. (example of field 9: abc&xyz)
I need to do an in place/in line edit.
So far I have accomplished the following:
awk -F '^K' '{print... (6 Replies)
Discussion started by: hemangjani
6 Replies
2. Shell Programming and Scripting
Hello,
I have a text file that i want to redirect into a new file , searching and replacing certain string during the opertaion.
This should be done using shell script , so it should not be interactive.
The script should get four parameters :
source file
target file
source string
target... (1 Reply)
Discussion started by: yoavbe
1 Replies
3. Post Here to Contact Site Administrators and Moderators
How to add inline tags in the posts?
Like in this thread post #4.
Thanks. (5 Replies)
Discussion started by: clx
5 Replies
4. UNIX for Advanced & Expert Users
I'm having a couple of issues. I'm trying to edit a nagios config and remove a host definition if a certain "host_name" is found. My thought is I would find host definition block containing the host_name I'm looking for and output the line numbers for the first and last lines. Using set, I will... (9 Replies)
Discussion started by: mglenney
9 Replies
5. Shell Programming and Scripting
Hi,
I have file with all the lines as following format
<namebindings:StringNameSpaceBinding xmi:id="StringNameSpaceBinding" name="ENV_CONFIG_PATH" nameInNameSpace="COMP/HOD/MYSTR/BACKOFFICE/ENV_CONFIG_PATH" stringToBind="test"/>
I want to replace (all the lines) value of... (8 Replies)
Discussion started by: shuklaa02
8 Replies
6. Programming
Hi,
I have 5 files as below
$ ll sam*
-rw-rw-rw- 1 sam ugroup 0 Mar 21 06:06 sam3
-rw-rw-rw- 1 sam ugroup 0 Apr 3 22:41 sam2
-rw-rw-rw- 1 sam ugroup 17335 Apr 10 06:07 sam1
-rw-rw-rw- 1 sam ugroup 5 Apr 10 07:53 sam5
-rw-rw-rw- 1 sam ugroup 661 Apr 10 08:16 sam4
I want to list out... (4 Replies)
Discussion started by: sam05121988
4 Replies
7. Shell Programming and Scripting
i have a datafile that has several lines that look like this:
2,dataflow,Sun Mar 17 16:50:01 2013,1363539001,2990,excelsheet,660,mortar,660,4
using the following command:
awk -F, '{$3=strftime("%a %b %d %T %Y,%s",$3)}1' OFS=, $DATAFILE | egrep -v "\-OLDISSUES," | ${AWK} "/${MONTH} ${DAY}... (7 Replies)
Discussion started by: SkySmart
7 Replies
8. Shell Programming and Scripting
I am trying to extract specific XML attribute values for search pattern <factories.*baseQueueName' from resources.xml.
my scripts works ok,, but to extract 3 values this code does echo $line three times, it could be 'n' times. How can I use awk to extract matching pattern values in-line or... (11 Replies)
Discussion started by: kchinnam
11 Replies
9. Shell Programming and Scripting
Hi,
I have an issue where i need to lookup in a given transaction file and if the same transaction is found in another file, then i need to replace a few columns with some other value.
Finally, the changed and unchanged lines must be printed and stored in the same source file.
for example... (5 Replies)
Discussion started by: mansoorcfc
5 Replies
10. Shell Programming and Scripting
the following code works perfectly for me:
# AWK 1
gawk -F, '/,'${ThisMonthDOW}' '${ThisMonthMON}' :: '${ThisMonthYEA}',/ {
if (NF == 10)
... (6 Replies)
Discussion started by: SkySmart
6 Replies
LEARN ABOUT OPENSOLARIS
libgcrypt-config
libgcrypt-config(1) User Commands libgcrypt-config(1)
NAME
libgcrypt-config - helper script for building with libgcrypt
SYNOPSIS
libgcrypt-config [--version] [--prefix=dir] [--cflags] [--libs] [--exec-prefix=dir] [--api-version] [--algorithms]
DESCRIPTION
The libgcrypt-config tool is used to determine the compiler and linker flags that should be used to compile and link programs that use the
libgcrypt library.
OPTIONS
The following options are supported:
--cflags Print the compiler flags that are necessary to compile a program using the specified library.
--exec-prefix=dir If specified, use dir instead of the exec installation prefix that the library was built with, when computing the
output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options.
--libs Print the linker flags that are necessary to link with the specified library.
--prefix=dir If specified, use dir instead of the installation prefix that the library was built with, when computing the output
for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. This
option is also used for the exec prefix if the --exec-prefix option is not specified.
--version Print the currently installed version of the library on the standard output.
--api-version Print the currently installed version of the api on the standard output.
--algorithms Print the currently installed algorithms the library contains on the standard output.
EXAMPLES
Example 1: Getting the libgcrypt library version
example% libgcrypt-config --version
Example 2: Determining the libraries required to link with the libgcrypt library
example% libgcrypt-config --libs
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/libgcrypt-config Executable for libgcrypt helper script
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWlibgcrypt-devel |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
libgcrypt(3), pkg-config(1), attributes(5)
Written by Jeff Cai, Sun Microsystems Inc., 2008.
SunOS 5.11 10 Jan 2008 libgcrypt-config(1)