1. I extract the details from database
2. Put it in a text file. I separate 3 fields by "|" (Pipe) in the text file.
3. I will convert this text file to an excel sheet. The excel sheet will have 3 columns. In the last column i have "Y" or "N".
Now I want only "Y" in my excel sheet. All "N" from the excel should be filtered. Where can it be done? Can I filter it after converting the text file to excel? Or I have to do it before converting the text file to excel?
Thanks in advance.
Try:
Step 1:
Step 2
Convert back to excel sheet, with delimitter |
I have 3 columns in an excel sheet.
c1 c2 c3
EIP_ACCOUNT SMALL_TS_01 select A.* from acc;
All the above 3 col shoud be passed a variable in the unix code.
1.How to read an excel file
2.How to pass these data as variable to the unic script (1 Reply)
Hi All,
I am having an excel sheet with pre-defined format which our business team specified, what i need to do is i have to write a script which need to pick values from database and update specified cells in excel sheet..
can any one please help me in this regard..
I am able to pull the... (3 Replies)
Hi Guys..
Need your help to format the output of my shell script.
I am using spool command to take out put in csv file.
below is my code. (for example)
col USERNAME for a15
col EMAIL for a30
col FULL_NAME for a20
col LAST_LOGIN for a40
col DATE_CREATED for a40
SPOOL 120.csv... (3 Replies)
hi,
i have a text file that looks like this!
i want to generate an excel sheet out of it, removing all the junk data except the addresses
that look like
. Arrow Electrical Services
Rotating Machinery, Electrical Contracting & Mining Specialists
Onsite maintenance, breakdown... (8 Replies)
Hi,
i have some data in a temporary file in Unix (the data is taken from the result of an SQL query). Now i want to dump that data into an excel sheet. How to do that. Someone please advise. Thanks
Regards,
Vinit (3 Replies)
Hello,
I have the following data format in a log file :
a : x1
b : x2
c : x3
d : x4
--------
a : x5
b : x6
c : x7
d : x8
so the same fields ( a ,b ,c,d) repeated many times in the same log file but with different "x" values (x5,x6,x7,x8).
I need a script to save this data in an... (6 Replies)
Hi,
I want to write a program to copy a log file to Excel sheet. Excel sheet has four columns MethodName , Code , Description, Details and Time.
I want to pick these info from text file and put it in excel sheet.
here is how the text file looks -
04.17.2014 08:06:12,697... (1 Reply)
Hi Folks,
Can you please advise for any script in unix such that for example , i have 3 different excel sheet at the location /ppt/gfr/exc so the name s of the excel sheet are
1excel.xslx
2excel.xslx
3excel.xslx
now in these 3 different excel sheet there is lot of data for example each... (3 Replies)
Discussion started by: punpun66
3 Replies
LEARN ABOUT DEBIAN
ns_getmimetype
Ns_Mime(3aolserver) AOLserver Library Procedures Ns_Mime(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
Ns_GetMimeType - Return the MIME type of a file
SYNOPSIS
#include "ns.h"
char *
Ns_GetMimeType(char *file)
_________________________________________________________________DESCRIPTION
Ns_GetMimeType(file)
The Ns_GetMimeType function uses the extension of file and looks up the associated MIME type stored internally in the server. Case
is ignored. The return value is of the form "text/html".
AOLserver has a set of predefined file extension to MIME type associations. You can add to these associations by defining file
extension to MIME type associations in the server configuration file in the ns/mimetypes section. If you define a file extension
that already exists in the server, that file extension and MIME type association will be replaced with yours.
If no MIME type association exists for a particular file extension, or there is no file extension, the default and noextension MIME
types are returned, respectively. These default to "*/*" but can be set in the server configuration file.
Here is an example ns/mimetypes section from the server configuration file:
ns_section "ns/mimetypes"
ns_param ".doc" "application/msword"
ns_param ".ppt" "application/vnd.ms-powerpoint"
ns_param ".xls" "application/vnd.ms-excel"
ns_param ".cab" "application/mscabinet"
ns_param ".frl" "application/x-perfpro"
ns_param ".max" "application/vviewer"
ns_param ".mif" "application/x-mif"
ns_param ".frz" "application/x-dffill"
ns_param ".asvg" "image/svg-xml"
ns_param ".asvgz" "image/svg-xml"
ns_param ".svg" "image/svg-xml"
ns_param ".svgz" "image/svg-xml"
ns_param default "*/*"
ns_param noextension "*/*"
SEE ALSO nsd(1), info(n)
KEYWORDS AOLserver 4.0 Ns_Mime(3aolserver)