04-05-2015
We dont want to do any manual intervention by importing to excel and reformatting it. This was a requirement as part of automation where we are trying below:
1. run a sql query it will be done through unix and out put can be created in txt or xls format.
2. get that data formatted on an excel with seperate columns and mail to user
Can you help me out on this
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a file whose data is like this::
osr_pe_assign|-120|wg000d@att.com|4|
osr_evt|-21|wg000d@att.com|4|
pe_avail|-21|wg000d@att.com|4|
osr_svt|-11|wg000d@att.com|4|
pe_mop|-13|wg000d@att.com|4|
instar_ready|-35|wg000d@att.com|4|
nsdnet_ready|-90|wg000d@att.com|4|... (6 Replies)
Discussion started by: priyanka3006
6 Replies
2. UNIX for Dummies Questions & Answers
Hello Gurus,
I have a text file containing nearly 12,000 tab delimited characters with 4000 rows. If the file size is small, excel can convert the text into coloumns. However, the file that I have is very big. Can some body help me in solving this problem?
The input file example,
... (6 Replies)
Discussion started by: Unilearn
6 Replies
3. UNIX for Dummies Questions & Answers
I have a text file that made using text editor in Ubuntu. However the text file is not being recognized as space or tab delimited, the formatting seems to be messed up. How can I convert the text file into tab delimited format? (3 Replies)
Discussion started by: evelibertine
3 Replies
4. Shell Programming and Scripting
Hi All,
I have space delimited file similar to the one as shown below.. I need to convert it as a pipe delimited, the values inside the pipe delimited file should be as highlighted...
AA ATIU2345098809 009697 005374
BB ATIU2345097809 005445 006518
CC ATIU9685098809 003215 003571
DD... (7 Replies)
Discussion started by: nithins007
7 Replies
5. Shell Programming and Scripting
I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use
cat file | sed 's/|//t/g'
The above command substituted "/t" not tab in the place of pipe.
Sample file:
abc|123|2012-01-30|2012-04-28|xyz
have to convert to:
abc 123... (6 Replies)
Discussion started by: karumudi7
6 Replies
6. Shell Programming and Scripting
Hi all,
How can i convert comma delimited .csv file to tab separate using sed command or script.
Thanks,
Krupa (4 Replies)
Discussion started by: krupasindhu18
4 Replies
7. Shell Programming and Scripting
Hi How to make tab delimited file to space delimited?
in put file:
ABC kgy
jkh ghj
ash kjl
o/p file:
ABC kgy
jkh ghj
ash kjl
Use code tags, thanks. (1 Reply)
Discussion started by: jagdishrout
1 Replies
8. Shell Programming and Scripting
Hi all,
I have a 3 columns input file like this:
CPLX9PC-4943 CPLX9PC-4943 1
CPLX9PC-4943 CpxID123 0
CPLX9PC-4943 CpxID126 0
CPLX9PC-4943 CPLX9PC-5763 0.5
CPLX9PC-4943 CpxID13 0
CPLX9PC-4943 CPLX9PC-6163 0
CPLX9PC-4943 CPLX9PC-6164 0.04... (7 Replies)
Discussion started by: AshwaniSharma09
7 Replies
9. UNIX for Beginners Questions & Answers
Hi
i have a problem in my job
i try to convert an excel file (xls extention) to text file (tab delimited), but no result with this comand
cat xxx.xls > xxx.txt
Do you have eny idea?
PS: sorry for my english
Thanks!! (4 Replies)
Discussion started by: frisso
4 Replies
10. Shell Programming and Scripting
Hi All,
How can we convert pipe delimited ( or comma ) file to vertical tab (VT) delimited.
Regards
PK (4 Replies)
Discussion started by: prasson_ibm
4 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)