CNT(1) General Commands Manual CNT(1)NAME
cnt - index counter
SYNOPSIS
cnt N ..
DESCRIPTION
Cnt counts from 0 to N-1, producing N lines of output. If multiple arguments are given, cnt produces a nested array of values where the
final counter rotates fastest through its range. Cnt is most useful in conjunction with rcalc(1) to produce array values.
EXAMPLE
To create a 3 by 5 array:
cnt 3 5
AUTHOR
Greg Ward
SEE ALSO neaten(1), rcalc(1), rlam(1), total(1)RADIANCE 11/15/93 CNT(1)
Check Out this Related Man Page
TABFUNC(1) General Commands Manual TABFUNC(1)NAME
tabfunc - convert table to functions for rcalc, etc.
SYNOPSIS
tabfunc [ -i ] func1 [func2 ..]
DESCRIPTION
Tabfunc reads a table of numbers from the standard input and converts it to an expression suitable for icalc(1), rcalc(1) and their
cousins. The input must consist of a M x N matrix of real numbers, with exactly one row per line. The number of columns must always be
the same in each line, separated by whitespace and/or commas, with no missing values. The first column is always the independent variable,
whose value indexes all of the other elements. This value does not need to be evenly spaced, but it must be either monotonically increas-
ing or monotonically decreasing. (I.e. it cannot go up and then down, or down and then up.) Maximum input line width is 4096 characters
and the maximum number of data rows is 1024. Input lines not beginning with a numerical value will be silently ignored.
The command-line arguments given to tabfunc are the names to be assigned to each column. Tabfunc then produces a single function for each
column given. If there are some columns which should be skipped, the dummy name "0" may be given instead of a valid identifier. (It is
not necessary to specify a dummy name for extra columns at the end of the matrix.)
The -i option causes tabfunc to produce a description that will interpolate values in between those given for the independent variable on
the input.
EXAMPLE
To convert a small data table and feed it to rcalc for some calculation:
rcalc -e `tabfunc f1 f2 < table.dat` -f com.cal
AUTHOR
Greg Ward
SEE ALSO cnt(1), icalc(1), neaten(1), rcalc(1), rlam(1), total(1)RADIANCE 10/8/97 TABFUNC(1)
I can't compile these codes with g++.
my system is linux (kernel is 2.4.0 ).
When I try to compile this program with g++ -o semw semw.cpp
It always tells me that sem_open sem_close,sem_post do not exist.But I have checked semaphore.h,I can not find any problems.
Anyone can compile these codes... (2 Replies)
can anyone please let me know how I can terminate a command Ex:"truss filename.truss.txt -p pid" after letting it run for 2sec in a korn shell script.In other words how can we emulate cntl^c in a script?? (3 Replies)
whats up all, I am very happy I joined this forum, I have learned alot just going through.
I have a small dilemma... trying to parse a textfile, and sort by 1st feild and add up second feild....
cat textfile.in
1200, 2.50
1200, 1.00
1200, 3.00
1000, 1.00
1000, 2.00
1500, 10.00
1600,... (5 Replies)
hi, I need to know how to lock a file. I used the following code, but after executing the program the file 'write.txt' remined empty, and I have no idea why.Maybe I'm not using the corresponding syntax for blocking a file. But I deleted then the blocking part and the problem persisted.
see to... (2 Replies)
I am doing some programming using C on UNIX. The thing is, I have been working in both UNIX and Windows for practicing.
I created a Delay fucntion over Windows using DevC++ as a compiler, when I tried over the console, it worked as I expected, I mean it was creating a delay (of one second for... (10 Replies)
Hi Gurus,
My requirement is, I am passing a file1.dat into this(rowcnt.sh) script,but returning a wrong value of -2.(it should be 4).Becoz my file1.dat contains 6records incl: Header & Footer.(6-2=4)
wrong output:
-------
#sh rowcnt.sh file1.dat
-2 actual_cnt except HDR & FTR
should be:... (3 Replies)
HI friends ,
I was assigned to enhance tool in unix solaris...the tool is totaly developed on shell and perl scripts...
The tool is used to change control files....The users are of certain group..
due to many users some people are changing these control files directly by using editors... (10 Replies)
Hi,
Unless I am missing some serious differences in Mac and linux in terms of C programming, I dont know why this would happen. Please take a look at the following piece of code fragment:
bool add_input_to_db(Cons *new_data) {
// Set the attributes of the lock
struct flock fl =... (3 Replies)
Hi,
I'm creating a shell script to dynamically create a recreate controlfile for an Oracle database. I need to read a cold backup file system, and make some changes to these files.
Let's say for argument sake the directory name is /ebsprod_c/oradata and it looks like this:... (6 Replies)
I have very simple client - server setup, where client connects, exchanges some messages with the server and then closes socket and exits. Everythink works OK, except when I am trying to change socket to be non-blocking AND the shell happens to be plain old Bourne. It runs no problem under ksh or... (3 Replies)
Hi,
I am using tr command like below:
cat file_name | tr -c "" "" > output_file
When i run my script from command mode, it is working fine. I scheduled my job in autosys. When the job runs at specified I am getting below Error:
tr: when translating with complemented character... (5 Replies)
Hello
I have a Perl script that works on non-darwin Mac OS X environments and I think I have narrowed down the issue to a file locking problem.
In other linux environments, the flock struct is defined differently. I have adjusted this via the reference for Mac OS X fcntl(2) man page. The... (4 Replies)
One issue I could see on AIX 5.3: At one of my customer they have got the ThreadLimit of 2500 set on web server in httpd.conf file.
Currently 2000 users have logged in each attaing a single instance of httpd.
While in ps -ef for httpd process it is showing thread count (thcount) almost 3000.... (3 Replies)
My system is Up with 2.6.32 (x86_64). it seems there is memcntl is not available.
man memcntl
No manual entry for memcntl
but this same is there on HP-UX/solaris (memcntl)
could any of will tell, what is corresponding to memcntl is there on RHEL/Linux?
Regards
Manish (3 Replies)