Hi,
I'm trying to read a file in with and assigne the stream to a char * type. I've manged it using the cin.get returning type char, but am having run-time problems returning a char *. For example,
char *pStream = "file.txt";
ifstream from(pStream);
from.open(pStream);
... (1 Reply)
hi,
I have a file containing names, say n number of names,
sample file
robin
smith
dallas
frey
cook
all these names are in a file name called names.txt and it is placed in a directory called /data/names
all i want is to write a script, which will read from the file and gives the... (3 Replies)
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance (4 Replies)
Hi All,
My requirement is:
1. To read a file that contains log file location and server name. The format of the file is something like this :
server_name1:logfilename1
server_name2:logfilename2
2. Now I wants to grep "error" string from the logfilename and put it into another file for... (3 Replies)
Hi,
I am a beginner in scripting...I have to do a script where I have to read a file which has list of job names, line by line and for every line execute a dsjob command to find the log details of the job and extract only the start time of the job, if it is greater than jan 01 2008 and create... (1 Reply)
I have a file that looks like this:
cat includes
CORP-CRASHTEST-BU
e:\crashplan\
CORP-TEST
/usr/openv/java
/usr/openv/logs
/usr/openv/man
CORP-LABS_TEST
/usr/openv/java
/usr/openv/logs
/usr/openv/man
What I want to do is make three new files with just those selections. So the three... (4 Replies)
I am trying to find an example for reading an array instead of reading a file and send out an email in ksh. Can you please help is that possible?
Algorithm
#!/bin/ksh
i=0
set -A ARR
if
then
let i=$
ARR="A does n't match with B"
fi
if
then
let i=$
ARR="P does n't match with Q"... (11 Replies)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (1 Reply)
So I'm stumped.
First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes.
I have a text file (file_source) of terms, each line... (3 Replies)
Discussion started by: Brusimm
3 Replies
LEARN ABOUT LINUX
iswblank
ISWBLANK(3) Linux Programmer's Manual ISWBLANK(3)NAME
iswblank - test for whitespace wide character
SYNOPSIS
#include <wctype.h>
int iswblank(wint_t wc);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
iswblank():
_XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L;
or cc -std=c99
DESCRIPTION
The iswblank() function is the wide-character equivalent of the isblank(3) function. It tests whether wc is a wide character belonging to
the wide-character class "blank".
The wide-character class "blank" is a subclass of the wide-character class "space".
Being a subclass of the wide-character class "space", the wide-character class "blank" 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 "blank" always contains at least the space character and the control character ' '.
RETURN VALUE
The iswblank() function returns nonzero if wc is a wide character belonging to the wide-character class "blank". Otherwise it returns
zero.
CONFORMING TO
POSIX.1-2001.
NOTES
The behavior of iswblank() depends on the LC_CTYPE category of the current locale.
SEE ALSO isblank(3), iswctype(3)COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 2010-09-20 ISWBLANK(3)