Thank you for your help Mr.Don. I run the code and output 1 line header should no space and require extra 'FILE_NAME,' like below. Could you please help out again?
i have a report.csv file from oracle datavase
In that file data is like this with report heading and date
SALES DAILY REPORT
DATE: 06-26-2007
REPORT NAME: SALES DATA
AA.BB.CCCC.DDDD,BBBBB,06-26-2007,0,BEGIN,END
ZZ.VV.DDDD.XXXXXXX,MMMMMM,06-25-2007,18,BEGIN,END... (3 Replies)
Hi All,
I am new to shell scripts. I have a requirement to change the format of a file. Here is the original file:
#student layout
student_name
student_class
student_subject
david
5
chemistry
paul
4
physics
steve
6
mathematics
This is the format i need:
k1,david,5,chemistry... (1 Reply)
my question "format file using shell script " is not a homework. bad guess.
my actual file is much more complex. the requirement is to format the file before i can read it from SAP.
so i'd appreciate if any inputs can be provide.
i've tried most of the commands like tr and sed and nawk, no... (2 Replies)
Hi,
I am writting a script, which accepts input file as parameter.
Input file name is aa_bb_cc_dd_ee.<ext>
I need to check that input file name should be of 5 fileds.
Please help me out. :confused: (7 Replies)
Hi,
IŽd like to know how to program a shell script for know when a file changes and based on that make another tasks all this in real time.. Thanks (2 Replies)
Request if some one could provide me shell script that converts the below "input file" to "CSV format file" given
Name Domain Contact Phone Email Location
----------------------- ------------------------------------------------ ------- ----- ---------------------------------... (7 Replies)
hi,
I have a local.conf file which has the first line
TOPDIR = "/home/mvdev/workspace/boxer". I want to replace the value to
"/home/common/workspace/mirror". I tried the following perl command that is
perl -p -i -e 's/Path/path1/g' myfile.txt then
sed... (7 Replies)
I have a shell script which creates a CSV files. there are 3 fields, field1, field2 and comp. I will generates the values for field1 and field2 and Want to compare both. If field1>filed2 then comp should be success written in green in CSV file, else it should fail in red color. How can I change the... (5 Replies)
Discussion started by: sauravrout
5 Replies
LEARN ABOUT DEBIAN
ns_gzip
Ns_Gzip(3aolserver) AOLserver Library Procedures Ns_Gzip(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
Ns_Gzip, Ns_SetGzipProc - GZIP compression support
SYNOPSIS
#include "ns.h"
int
Ns_Gzip(buf, len, level, dsPtr)
void
Ns_SetGzipProc(proc)
ARGUMENTS
Tcl_DString dsPtr (out) Output buffer to placed compressed string.
int len (in) Length of string pointed to by buf.
char *buf (in) Pointer to string to compress.
int level (in) Requested GZIP compression level.
Ns_GzipProc proc (in) Procedure to GZIP content.
_________________________________________________________________DESCRIPTION
These functions enable GZIP compress of text buffers.
int Ns_Gzip(buf, len, level, dsPtr)
This function compresses a string pointed to by buf of length len, appending the output to the given dsPtr. The output buffer must
already be initialized. The level parameter specifies the compress level between 0 and 9; see the documentation in the zlib.h for
details.
The function will return NS_OK if compression was successful, otherwise NS_ERROR. A call to Ns_SetGzipProc to install a compression
function must have already occured. The nszlib module will install a suitable function when loaded.
void Ns_SetGzipProc(proc)
This function is used to install a compression function for Ns_Gzip. A call to Ns_SetGzipProc would normally be in the module-load
routine of a module which provides compression support, e.g., the nszlib module. The function should match the type Ns_GzipProc:
typedef int Ns_GzipProc(
char *buf, int len, int level, Tcl_DString *dsPtr
);
KEYWORDS
compress, gzip
AOLserver 4.5 Ns_Gzip(3aolserver)