01-31-2012
Yes Header will form the base for the length of the data under them,
because size between to column depends on data part tats y i said we have fixed column name but data length is variable.
if we header is base how can we resolve this one
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file which contains 1 million records of the following format. Each field is delimited by a pipe tilda pipe "|~|" show below. I would like to print only one column ie the CARDDESC value.
for example here it says CARDDESC=A8T1.
so anything after CARDDESC= and before |~|CARDTYPE is what... (11 Replies)
Discussion started by: knijjar
11 Replies
2. Shell Programming and Scripting
Hi All,
The following is the scenario
id name
--------------
1 William;Johnson
2 Azim;Abdul
3 Grasim
.
.
etc....
I need the following output
id name
--------------
1 William
1 Johnson
2 Azim (2 Replies)
Discussion started by: kottursamy
2 Replies
3. Red Hat
I am trying to count the number of columns in a delimited flat file. The record is tab delimited. When I use the command wc -w, I am getting unexpected results when the record contains a NULL value. I believe it is because there is a "word" missing.
The below example will return 4 words... (2 Replies)
Discussion started by: nmalencia
2 Replies
4. Shell Programming and Scripting
Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types:
(H)eader Records
(D)etail Records
(T)railer Records
The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Discussion started by: jclanc8
3 Replies
5. Shell Programming and Scripting
Hi Everyone,
Using shell script i am getting final file as attached below. In this 4th column value should be unique using any sequence.
for instance I've 1_13020_SSGM which is appearing 6 times in file and i should change it like 1_13020_SSGM_1,1_13020_SSGM_2,....1_13020_SSGM_6.
Can someone... (4 Replies)
Discussion started by: gehlnar
4 Replies
6. Shell Programming and Scripting
Hi All,
I need a unix script to convert .csv files to .skv files (changing a comma delimited file to a semi colon delimited file). I am a unix newbie and so don't know where to start. The script will be scheduled using cron and needs to convert each .csv file in a particular folder to a .skv... (4 Replies)
Discussion started by: CarpKing
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 Forum.
I'm struggling to find a solution for the following issue.
I have multiple files a1.txt, a2.txt, a3.txt, etc. and I would like to insert a tab-delimited header record at the beginning of each of the files.
This is my code so far but it's not working as expected.
for i in... (2 Replies)
Discussion started by: pchang
2 Replies
9. Shell Programming and Scripting
Hi,
I have the following output from an Oracle SQL statement and I want to remove duplicated column values.
I know it is possible using Oracle analytical/statistical functions but unfortunately I don't know how to use any of those.
So now, I've gone to PLAN B using awk/sed maybe or any... (5 Replies)
Discussion started by: newbie_01
5 Replies
10. Shell Programming and Scripting
Hi,
I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file.
Example of the SQL will be
For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING.
I then concatenate... (2 Replies)
Discussion started by: newbie_01
2 Replies
LEARN ABOUT DEBIAN
ost_sharedmempager
ost::SharedMemPager(3) Library Functions Manual ost::SharedMemPager(3)
NAME
ost::SharedMemPager -
The shared mempager uses a mutex to protect key access methods.
SYNOPSIS
#include <misc.h>
Inherits ost::MemPager, and ost::Mutex.
Protected Member Functions
SharedMemPager (size_t pagesize=4096, const char *name=NULL)
Create a mempager mutex pool.
void purge (void)
Purge the memory pool while locked.
void * first (size_t size)
Get the first memory page after locking.
void * alloc (size_t size)
Get the last memory page after locking.
Additional Inherited Members
Detailed Description
The shared mempager uses a mutex to protect key access methods.
This class is used when a mempager will be shared by multiple threads.
Author:
David Sugar dyfet@ostel.com mutex protected memory pager.
Constructor & Destructor Documentation
ost::SharedMemPager::SharedMemPager (size_tpagesize = 4096, const char *name = NULL) [protected]
Create a mempager mutex pool. Parameters:
pagesize page size for allocation.
name a name for the pool.
Member Function Documentation
void* ost::SharedMemPager::alloc (size_tsize) [protected], [virtual]
Get the last memory page after locking. Returns:
allocated memory space.
Parameters:
size of request.
Reimplemented from ost::MemPager.
void* ost::SharedMemPager::first (size_tsize) [protected], [virtual]
Get the first memory page after locking. Returns:
allocated memory space.
Parameters:
size of request.
Reimplemented from ost::MemPager.
void ost::SharedMemPager::purge (void) [protected]
Purge the memory pool while locked.
Reimplemented from ost::MemPager.
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::SharedMemPager(3)