@Rksiva
The extra space character before the "<<" is not a problem.
@giridhar276
Please post what Operating System and version you have and what Shell your are using.
I have come across Shells which expand the asterisk character in a "here" document.
If you get a list of files from this test script, you need to protect the asterisk.
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 REDHAT
iswspace
ISWSPACE(3) Linux Programmer's Manual ISWSPACE(3)NAME
iswspace - test for whitespace wide character
SYNOPSIS
#include <wctype.h>
int iswspace(wint_t wc);
DESCRIPTION
The iswspace function is the wide-character equivalent of the isspace function. It tests whether wc is a wide character belonging to the
wide character class "space".
The wide character class "space" is disjoint from the wide character class "graph" and therefore also disjoint from its subclasses "alnum",
"alpha", "upper", "lower", "digit", "xdigit", "punct".
The wide character class "space" contains the wide character class "blank".
The wide character class "space" always contains at least the space character and the control characters 'f', '
', '
', ' ', 'v'.
RETURN VALUE
The iswspace function returns non-zero if wc is a wide character belonging to the wide character class "space". Otherwise it returns zero.
CONFORMING TO
ISO/ANSI C, UNIX98
SEE ALSO isspace(3), iswctype(3)NOTES
The behaviour of iswspace depends on the LC_CTYPE category of the current locale.
GNU 1999-07-25 ISWSPACE(3)