09-19-2009
Hi Vidyadhar,
I will check that out. Thank You.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a abc.txt file.
In this file there is a SQL query which Iwant to copy and print it on another file.The query (for eg) is written like this:
SELECT field1,
field2,
field3
from table1,table2
where <conditions>
END
I want to copy this query to another... (3 Replies)
Discussion started by: jisha
3 Replies
2. Shell Programming and Scripting
Hi everybody,
I have two XML files.
I am working on a script that could copy and paste the contents of the first xml file to the desired location in the second xml file.
Here is my first XML file.
This is the second XML file.
Finaly, I wnat to obtain something like that :
... (2 Replies)
Discussion started by: lsaas
2 Replies
3. Shell Programming and Scripting
Hi Gurus,
I'm a total newbie to Perl and Awk scripting. Let me explain the scenario, there is a DB2 table with 5 columns and one of the column is a CLOB datatype containing XML. We need all the 4 columns but only a portion of string from the XML column.
We decided to export DB2 table to a .del... (26 Replies)
Discussion started by: asandy1234
26 Replies
4. Shell Programming and Scripting
Hi to all,
I have the short print out sample of the DOS command "dir S/" as showed below.
Directory of C:\Program Files\Winamp\Skins\Bento\window
02/12/2010 11:35 p.m. <DIR> .
02/12/2010 11:35 p.m. <DIR> ..
11/12/2009 10:31 a.m. 13,556... (3 Replies)
Discussion started by: cgkmal
3 Replies
5. Shell Programming and Scripting
Hi experts
cp bin root src /mnt
but not copy bin/bigfile
any help?
( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum)
Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies
6. Shell Programming and Scripting
Hi,
How do we write the contents of multiple files created in awk body to a new file in awk (END block) ? when I used "getline", it is consuming more time. Do we have any other way other than getline? (1 Reply)
Discussion started by: Cool
1 Replies
7. Shell Programming and Scripting
I have rrd file which is have the gaps and I want to fill it out with some value , I've got 10 NaN record and I try to populate data from 10 records be for NaN to change instead of NaN :(
<!-- 2016-05-19 14:10:00 CST / 1463638200 -->... (11 Replies)
Discussion started by: boobytrap
11 Replies
8. Shell Programming and Scripting
Hi all
i have table like this
input001_1_174 j 474536 482492
mo001_1_175 j 960192 966656
.ire 966656 984416
.uf/i want copy number of first line to other line... (10 Replies)
Discussion started by: alii
10 Replies
9. Shell Programming and Scripting
The tab-delimited file below using the awk produces a blank output. However, when I copy the same lines in file to a new document and execute the awk I get the desired result.
The awk counts the unique characters before the : in $7 according to the id in $1.
The awk seems to work but I can not... (5 Replies)
Discussion started by: cmccabe
5 Replies
unifdef(1) General Commands Manual unifdef(1)
NAME
unifdef - remove preprocessor lines
SYNOPSIS
sym] sym] sym] sym]] ... [file]
DESCRIPTION
simulates some of the actions of in interpreting C language preprocessor command lines (see cpp(1)). For a valid preprocessor command line
contains as its first character a and one of the following keywords: or The character and its associated keyword must appear on the same
line, but they can be separated by spaces, tabs, and commented text. When appropriate, the portions of code surrounded by and including
the targeted preprocessor directives are removed, and the resultant text is written to the standard output.
Unlike does not insert included files, interpret macros, or strip comment lines. This means, among other things, that and macros occurring
within the input text are not interpreted.
Since is language-independent, it can be used for processing source files for languages other than the C language. For example, can be
used on FORTRAN language source files, provided the C language preprocessor commands are used.
Options
recognizes the following command-line options:
Complement the normal behavior by printing only the rejected lines.
Ignore text delimited by
sym. In other words, text that would otherwise be affected by some action is not touched when found within the context
of a preprocessor command using sym.
Ignore text delimited by
sym.
Replace rejected lines with blank lines
in the text written to the standard output.
Treat the input source as plain text.
C-language comment and quoting constructs are not recognized.
Define symbol
sym.
Cause symbol
sym to be undefined.
RETURN VALUE
The command returns the following exit values:
0 Output is an exact copy of the input.
1 Output is not an exact copy of the input.
2 The command fails. The failure might be due to a premature EOF or to an inappropriate or
EXAMPLES
Assume file contains the following:
The command sequence:
produces the following result in file
WARNINGS
Any symbol name defined in the file must be specified in the command line; otherwise, will ignore the line.
AUTHOR
was developed in the public domain.
SEE ALSO
cpp(1).
unifdef(1)