thanks Anchal...it works !
Still 1 more doubt is there any way we can assign the path
'/xyz/abc/123/qwe' to a variable and then use it in for loop's condition? like
Last edited by Scott; 12-23-2010 at 07:26 AM..
Reason: Quote tags to Code tags
Sorry to be a pain, but how does the else work in the if statements?
Ive been making scripts with if statements but i cant get the else statements working.
Can you help? (8 Replies)
I had different problem scenarios with IF statement. Can any expert please enlighten me on the difference with these scenarios. Thank you.
1st Scenario:
testdate=`date +%Y%m`
test=`cat /var/log/database0.$testdate*.log | grep "Errors found during processing" | tail -10`
if
then
... (4 Replies)
Hello members,
I'm working on the Solaris environment and the DB i'm using is Oracle 10g.
Skeleton of what I'm attempting;
Write a ksh script to perform the following. I have no idea how to include my sql query within a shell script and loop through the statements. Have therefore given a... (4 Replies)
I am writing a script that does a search for a argument in a file and lists all like occurrences. The script verifies that it is a file and then runs another script that list the lines. My problem is that I need the script to accept a file or a directory and then go to that directory check all... (1 Reply)
Hi
I am very new to Unix programming and shell scripting. I am trying t figure out how to write a little script that will output the number of directories. I can find the number of directories using ls -l | grep "^d" | wc -l I can not figure out how to do it so when I type the name... (8 Replies)
Hi guys,
Two problems I need solving please. I created a script where the user types in 7 numbers as standard input and each one is then stored in an array. Now I need to perform the following calculations on those numbers:
1) Use a while loop to determine the largest number in the range.
... (2 Replies)
1. The problem statement, all variables and given/known data:
Two problems I need solving please. I created a script where the user types in 7 numbers as standard input and each one is then stored in an array. Now I need to perform the following calculations on those numbers:
1) Use a while... (11 Replies)
I came across a bash script that outputs the forecast for the day and the max temperature but at the end of the day the max temperature disappears ($6) and I am left with "°C" after the forecast.
Here is the script:
#! /bin/bash
curl -s --connect-timeout 30... (7 Replies)
I cannot get the code below to work correctly. The IF statement works just fine, but not the looping. The inner loop tries to find files for a given vendor; if found, I need to sleep giving another process time to move the files. Once the given vendor's files are gone, then I want to move on to the... (1 Reply)
Discussion started by: dgreene
1 Replies
LEARN ABOUT DEBIAN
jocamlmklib
JOCAMLMKLIB(1) General Commands Manual JOCAMLMKLIB(1)NAME
jocamlmklib - generate libraries with mixed C / Caml code.
SYNOPSIS
ocalmklib [options] files
DESCRIPTION
The jocamlmklib command facilitates the construction of libraries containing both Caml code and C code, and usable both in static linking
and dynamic linking modes.
OPTIONS -h, --help
Show summary of options.
-cclib lib
C library passed to jocamlc -a or jocamlopt(1)-a only.
-ccopt opt
C option passed to jocamlc(1)-a or jocamlopt(1)-a only.
-custom
Disable dynamic loading.
-dllpath dir
Add dir to the run-time search path for DLLs.
-I dir Add dir to the path searched for Caml object files.
-failsafe
Fall back to static linking if DLL construction failed.
-ldopt opt
C option passed to the shared linker only.
-linkall
Build Caml archive with link-all behavior.
-llib Specify a dependent C library.
-Ldir Add dir to the path searched for C libraries.
-jocamlc cmd
Use cmd in place of jocamlc(1).
-jocamlopt cmd
Use cmd in place of jocamlopt(1).
-o name
Generated Caml library is named name.cma or name.cmxa.
-oc name
Generated C library is named dllname.so or libname.a.
-rpath dir
Same as -dllpath dir.
-Rdir Same as -rpath.
-verbose
Print commands before executing them.
-Wl, -rpath dir
Same as -dllpath dir.
-Wl, -rpath -Wl dir
Same as -dllpath dir.
-Wl, -Rdir
Same as -dllpath dir.
-Fdir Specify a framework directory (MacOSX).
-framework name
Use framework name (MacOSX).
SEE ALSO jocamlc(1), jocamlopt(1).
AUTHOR
This manual page was written by Samuel Mimram <samuel.mimram@ens-lyon.org>, for the Debian project (but may be used by others).
August 19, 2004 JOCAMLMKLIB(1)