zero(3tcl)zero(3tcl)NAME
zero - Create and manipulate zero channels
SYNOPSIS
package require Tcl
package require memchan
zero
DESCRIPTION
The command described here is only available in a not-yet released version of the package. Use the CVS to get the sources.
zero creates a zero channel which absorbs everything written into it. Reading from a zero channel will return the requested number of
null bytes. These channels are essentially Tcl-specific variants of the zero device for unixoid operating systems (/dev/zero).
Transferring the generated channel between interpreters is possible but does not make much sense.
OPTIONS
Memory channels created by zero provide one additional option to set or query.
-delay ?milliseconds?
A zero channel is always writable and readable. This means that all fileevent-handlers will fire continuously. To avoid starvation
of other event sources the events raised by this channel type have a configurable delay. This option is set in milliseconds and
defaults to 5.
SEE ALSO
fifo, fifo2, memchan, null, random
KEYWORDS
channel, i/o, in-memory channel, null, zero
COPYRIGHT
Copyright (c) 2004 Pat Thoyts <patthoyts@users.sourceforge.net>
Memory channels 2.2 zero(3tcl)
Check Out this Related Man Page
zero(3tcl)zero(3tcl)NAME
zero - Create and manipulate zero channels
SYNOPSIS
package require Tcl
package require memchan
zero
DESCRIPTION
The command described here is only available in a not-yet released version of the package. Use the CVS to get the sources.
zero creates a zero channel which absorbs everything written into it. Reading from a zero channel will return the requested number of
null bytes. These channels are essentially Tcl-specific variants of the zero device for unixoid operating systems (/dev/zero).
Transferring the generated channel between interpreters is possible but does not make much sense.
OPTIONS
Memory channels created by zero provide one additional option to set or query.
-delay ?milliseconds?
A zero channel is always writable and readable. This means that all fileevent-handlers will fire continuously. To avoid starvation
of other event sources the events raised by this channel type have a configurable delay. This option is set in milliseconds and
defaults to 5.
SEE ALSO
fifo, fifo2, memchan, null, random
KEYWORDS
channel, i/o, in-memory channel, null, zero
COPYRIGHT
Copyright (c) 2004 Pat Thoyts <patthoyts@users.sourceforge.net>
Memory channels 2.2 zero(3tcl)
Hi
I need to do an add function but it should include the prefixed zeros
For Example
i=00123
j=`expr $i + 1`
The output it shows is 124 but I want the output to be 00124
Could any one help me finding out how to do this
Thanks (16 Replies)
How do I trim the leading zeroes, and (+,-) in the currency field ?
I have a text file.
Your bill of +00002780.96 for a/c no. 25287324 is due on 11-06.
Your bill of +00422270.48 for a/c no. 28931373 is due on 11-06.
I want the O/P file to be like.
Your bill of 2780.96 for a/c no. 25287324... (22 Replies)
Hi All
I want to delete trailing zeros from varible.
ex:
if variable value is 1234.567000 result as 1234.567
if variable has 1234.0000 result as 1234
if variable as abcd.fgh result as abcd.fgh
Can somone give me a solution using awk? (16 Replies)
Hi All,
I would like to trim the following input.
My condition is as long as there's a zero on the left of the number, remove the zeros. Can anybody help me by using sed or awk ?
Eg:
0011 => change to => 11
0333 => change to => 333
4444 => No change => 4444 (13 Replies)
Hi all,
I have file with numeric values. I need to pad each value with leading zeros such that total lenght of each value is 16.
Example:
cat tmp.txt
502455
50255
5026
5027
5028
Output
0000000000502455
0000000000050255
0000000000005026
0000000000005027
0000000000005028
Any... (12 Replies)
hello everyone. I'm hoping someone can help me out here. I have 2 files. It looks like this:
File 1:
abc1, defg, 50.00, mno,990
abc2, cats, 100.00, pops,991
abc3, dogs, 1.00, treat,992
File 2:
990, airplanes, runway, doctor
991, jets, birds, much
990,... (13 Replies)
Hi Forum.
I tried searching the forum but couldn't find a solution for my question.
I have the following data and would like to have a sed syntax to remove the leading zeroes from the 2nd field only:
Before:
2010-01-01|123|1|1000|2000|500|1500|600|700... (18 Replies)
Hi all,
i have a text file like the below example---
146 7600 147 23996
43024 50700581 28998 1767165
10 3784 12 1344
0 0 0 545
641 166646 723 90136
24 1046 46 2948
OR
4340 ... (15 Replies)
I'm trying to write a bash script to perform basic arithmetic operations but I want to run a comparison on the arguments first to check that they're a number greater than zero.
I want an error to pop up if the arguments args aren't >= 0 so I have:
if ! ]; then
echo "bad number: $1"
fi
... (14 Replies)
I have a list of numbers extracted and need to delete the leading zeros from them, but when i do so, the command I am using also deletes numbers that end in Zero as well. eg 10, 20, 30, etc
this is part of a larger script and the only way I can think of is to try and detect the 10,20 30 etc in... (19 Replies)
Hello,
I have two files of same structure except some rows are missing randomly in each file. How do I fill the missing rows to have the exact ID column (S01 ~ S96) and rest columns filled with "0" with awk? The purpose of this step is to join the two files side by side. The closest thread is... (17 Replies)
In the below awk, I am trying to calculate percent for a given id. It is very close the problem is when the # being used in the calculation is zero. I am not sure how to code this condition into the awk as it happens frequently. The portion in italics was an attempt but that lead to an error. Thank... (13 Replies)
Hello,
I have a pipe separated file with two major lines. One is header and another is detail line. Header starts with H and Detail start with D.
Sample Content:
H|123456|Joes Watson|UK|4/5/2016|12/5/2016|3456|HC|NW||||||
D|123456|Joes... (13 Replies)
11☺Hi,
I have to data sets:
One is in .txt format and other is in .csv format, please refer below two outputs from two files.
File1.txt
SOURCE PAYDATE TOTAL_DOLLARS RECORD_COUNT
ASSET 05/25/2018 247643.94
ASSET 06/20/2018 ... (27 Replies)