12-15-2008
Spliting the file dynamically
i am creating the file , when this file reaches the size 2 GB, i need one message or fire
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a file {filename} which contains 65000 records
I need to split into 6 smaller files roughly 11000 records each.
Can someone advise me of the Unix command to do so ?
Many thanks (2 Replies)
Discussion started by: grinder182533
2 Replies
2. Shell Programming and Scripting
Hi,
I have a comma separated file with millions of records in it.
I have a requirement to split the file based on the value in a one of the columns.
Suppose i have a text file with columns like C1, C2,C3,C4
Column C4 can hold the values either 01 or 02 03 or 04.
I nned to extract... (2 Replies)
Discussion started by: Raamc
2 Replies
3. UNIX for Dummies Questions & Answers
Hi
The scenario is like this.
I need to split 5 files having size 3GB, 2GB, 4GB, 30GB and 20 GB respectively.
The machine has 15GB heap space. Before starting split proces it was showing 15gb free space. Once the split process completed it showed 100 mb free and around 12GB cached.
My... (3 Replies)
Discussion started by: siba.s.nayak
3 Replies
4. Shell Programming and Scripting
Hi friends,
I am new to unix. With the help of this site I wrote a script. But it's returning some errors pls help.:confused:
Here is my specifications:
I have a file obsrec_31583_090212.xls at /home/lingalma/temp/cdl I want it to mv to another temp folder called /home/lingalma/temp/obsrec... (6 Replies)
Discussion started by: raaj.manoj
6 Replies
5. UNIX for Dummies Questions & Answers
how would i split the file "file1" into smaller files containg lines of 15 (1 Reply)
Discussion started by: JamieMurry
1 Replies
6. Shell Programming and Scripting
I have a very big log file which looks like this:
I need to split this file and create files with "+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+" as the delimiter.
The file names need to be the contents of the next line after the delimiter(FIRST_ITEM,SECOND_ITEM...so on..). (7 Replies)
Discussion started by: engineer
7 Replies
7. Shell Programming and Scripting
Dear All,
I have a very large file which which i would like split into indvidual frames evrytime the line ends with "ENDMDL" and then name frame1.pdb frame2.pdb etc
can any one give me a few sugeestions? ideally i would like to have ENDMDL at the end of each frame or not pressent at all.
an... (4 Replies)
Discussion started by: Mish_99
4 Replies
8. Shell Programming and Scripting
Hi all,
i have file that looks like as below
2263881188,24570896,439,SOLO,SOLO_UNBEATABLE,E,+3.13,+0.00
2263881964,24339077,439,SOLO,SOLO_UNBEATABLE,F,-0.67,+0.00
2263883220,22619162,228,Bell,Bell_MONTHLY,E,-2.04,+0.00
2263883220,22619162,228,Bell,Bell_MONTHLY,F,-2.04,+0.00... (3 Replies)
Discussion started by: raghavendra.cse
3 Replies
9. Shell Programming and Scripting
Hello,
I want to split or cut a large size log file by year wise(eg 2009, 2010) .But the source file must not have the splited or cut lines after this process ,all of them must move to the destination folder.Does grep command have the fuctionality like cut and paste? I used grep -Ev command but... (17 Replies)
Discussion started by: jobycxa
17 Replies
10. Shell Programming and Scripting
Hi,
There is a requirement, needs to split the text file based on RC code present in text file.
For this, needs to write a unix shell programing script for the above requirement.
For example in text file, if there are distinct RC codes, then we needs to split into multiple text files. In... (1 Reply)
Discussion started by: Chandra2678
1 Replies
LEARN ABOUT DEBIAN
memchan
memchan(3tcl) memchan(3tcl)
NAME
memchan - Create and manipulate memory channels
SYNOPSIS
package require Tcl
package require memchan
memchan ?-initial-size len?
DESCRIPTION
This manpage documents both the overall package and the command memchan. The package itself provides a number of in-memory channels which
can utilized to
o capture stream-like information in a natural way instead of using set and append to manipulate strings
o or to transfer data between interpreters, in the same thread or not.
COMMAND
memchan ?-initial-size len?
creates a chunk-oriented in-memory channel and returns its handle. If an initial size is specified the system will pre-allocate len
bytes of buffer space for the contents. This is no restriction on the ultimate size of the channel, it will always grow as much as
is necessary to accommodate the data written into it.
The channels created here can be transferred between interpreters in the same thread and between threads, but only as a whole. It is
not possible to use them to create a bi- or unidirectional connection between two interpreters.
Memory channels created by memchan provide two read-only options which can be queried via the standard fconfigure command. These are
-length
The value of this option is the number of bytes currently stored in the queried memory channel.
-allocated
The value of this option is the number of bytes currently allocated by the queried memory channel. This number is at least as big as
the value of -length.
As the channels generated by memchan grow as necessary they are always writable. This means that a writable fileevent-handler will fire
continuously.
The channels are also readable if they contain more than zero bytes and the seek location is not and the end of the channel. Under these
conditions a readable fileevent-handler will fire continuously.
Note that writing to such a channel usually occurs at the end, thus suppressing readable events. This also means that users have to take
care to seek the channel to a location before the end before trying to read data back.
SEE ALSO
fifo, fifo2, null, random, zero
KEYWORDS
channel, chunk, i/o, in-memory channel, memchan
COPYRIGHT
Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
Memory channels 2.2 memchan(3tcl)