Hello,
I am trying to write a bash shell script that does the following:
1.Finds all *.txt files within my directory of interest
2. reads each of the files (25 files) one by one (tab-delimited format and have the same data format)
3. skips the first 10 rows of the file
4. extracts and... (4 Replies)
Suppose there is a table like the following...I just wanted to know if there is any command using which we can get the record/name of the person who joined before 2005..
Sl Name des y.o.joining
1 Ram Engineer 2001
2 Hari Doctor 2004
3 David Plumber 2005
4 Rahim painter 2007
5 gurmeet... (1 Reply)
Hi Gurus,
I'm a unix newbie and I would like to connect to multiple unix servers from unix server using shell script i.e from server a to server b,c,d etc. I want to copy the files from unix server a to server b, c, d. I can access staright using ssh without the need to have password and user... (5 Replies)
I have an Employee with EID, ENAME and ESTATUS as columns in SQL.
I want to extract the status of an employee and update the details if the status is 'A'.
Can anyone help in writing the shell script. (1 Reply)
I have bash, awk, and sed available on my portable device. I need to extract 10 fields from each table row from a web page that looks like this:
</tr>
<tr>
<td>28 Apr</td>
<td><a... (6 Replies)
hi,
i have a requirement where i need to connect sqlplus from unix and i am able to do so by following command:
cust_count=`sqlplus -s $ORACLE_USER/$ORACLE_PASS@$ORACLE_SID << EOF
set pagesize 0
set feedback off
set verify off
... (1 Reply)
Hi, i want to create a table automatically based on another table (sms_key).
For example;
If user create a new row with sms_keyword field: IRC then a table created automatically (with some field on it, like: name, ph_number, messages).
select * from sms_key;
+-------------+
|... (1 Reply)
Dear All,
I am trying to write a Unix Script which fires a sql query. The output of the sql query gives multiple rows. Each row should be saved in a separate Unix File.
The number of rows of sql output can be variable. I am able save all the rows in one file but in separate files.
Any... (14 Replies)
need to create shell script to read the table's name from file and connect SQL SERVER using isql (odbcunix)
i 'm able connect to database with below command line syntex but i could not get working in shell script with SQL and storing the row count in variable.
isql -v DSN USERNAME PASSWD
... (6 Replies)
I have below 2 requirements for parameterize the generate the extract file from Oracle table using Shell Script. Could you please help me by
modifying the script and show me how to execute it.
First Requirement:
I have a requirement where I need to parameterize to generate one... (0 Replies)
Discussion started by: hareshvikram
0 Replies
LEARN ABOUT HPUX
lldiv
div(3C)div(3C)NAME
div(), ldiv(), lldiv(), imaxdiv() - integer division and remainder
SYNOPSIS DESCRIPTION
Computes the quotient and remainder of the division of the numerator
numer by the denominator denom. If the division is inexact, the sign of the resulting quotient is that of the algebraic
quotient, and the magnitude of the resulting quotient is the largest integer less than the magnitude of the algebraic quo-
tient. If the result can be represented, the result is returned in a structure of type (defined in having members quot and
rem for the quotient and remainder respectively. Both members have type and values such that quot denom rem numer. If the
result cannot be represented, the behavior is undefined.
Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot
and rem for the quotient and remainder respectively.
Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot
and rem for the quotient and remainder respectively.
Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot
and rem for the quotient and remainder respectively.
WARNINGS
Behavior is undefined if denom is zero.
SEE ALSO floor(3M), thread_safety(5).
STANDARDS CONFORMANCE div(3C)