Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cnt(1) [xfree86 man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

sem_open problem

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)
Discussion started by: lance
2 Replies

2. UNIX for Dummies Questions & Answers

File status - open/close ??

Is there any commands in UNIX, like isopen(),isclose() to know whether a file has been opened for read/write purpose.? Thanks (3 Replies)
Discussion started by: Pal
3 Replies

3. UNIX for Dummies Questions & Answers

how to cntl^c in a script

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)
Discussion started by: Ravi Kanth
3 Replies

4. Shell Programming and Scripting

Parsing a textfile, sorting and doing math fucntions.

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)
Discussion started by: djsal
5 Replies

5. Programming

I have no clue what's the point - fcntl() ?

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)
Discussion started by: atticus
2 Replies

6. Programming

Sleep or Dealy fucntion Issue

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)
Discussion started by: josejesus3340
10 Replies

7. Shell Programming and Scripting

rowcnt except Header & Footer

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)
Discussion started by: vsubbu1000
3 Replies

8. UNIX for Advanced & Expert Users

Help to enchance unix tool..

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)
Discussion started by: Nagabhushan
10 Replies

9. Programming

fcntl works in linux but not in mac os x

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)
Discussion started by: newhere
3 Replies

10. Shell Programming and Scripting

Need help with a sh script to spool directory and modify the output (Oracle cnt file)

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)
Discussion started by: exm
6 Replies

11. Programming

fcntl on socket

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)
Discussion started by: migurus
3 Replies

12. Shell Programming and Scripting

Issue with command tr.

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)
Discussion started by: Karteek
5 Replies

13. Shell Programming and Scripting

File Locking with fcntl on Darwin Mac OSX

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)
Discussion started by: flagman5
4 Replies

14. AIX

THCOUNT (THCNT) higher than ThreadLimit for httpd process?

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)
Discussion started by: aarora_98
3 Replies

15. Linux

memcntl is not available on RHEL

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)
Discussion started by: manish_tcs_hp
3 Replies