09-09-2011
It complaints a little with '-pedantic' option.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a command that sets a variable length?
I have a input of a variable length field but my output for that field needs to be set to 32 char.
Is there such a command?
I am on a sun box running ksh
Thanks (2 Replies)
Discussion started by: r1500
2 Replies
2. Shell Programming and Scripting
Hi,
I am creating a file in Unix using a shell script. The file is getting created in the Unix - ANSI format. My requirement is to convert it to the PC - ANSI format. Can anyone tell me how to do this?
Thanks,
Sunil (0 Replies)
Discussion started by: ssmallya
0 Replies
3. Red Hat
I have been compiling a cpp program using following command:
g++ -c -ansi a.cpp with g++ version 4.1.2. I want to know the significance of the -ansi flag and which other higher g++ version supports this flag by default
Dhiraj (1 Reply)
Discussion started by: dhiraj kurhade
1 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
I need to implement the following logic and need some expert help from UNIX community.
These are the steps in my Shell script.
1. Analyze a file.
2. Extract all the ID's in that file.
3. Use the ID's from #2 to run another filter on the file.
I've implemented # 1 and 2 using... (3 Replies)
Discussion started by: katwala
3 Replies
6. Shell Programming and Scripting
Hi,
Can anyone help with a effective solution ?
I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the end, filled with spaces.
The text field is actually field 10 of a .csv file however I could cut... (7 Replies)
Discussion started by: dc18
7 Replies
7. Shell Programming and Scripting
As Brendan O'Conner writes in this blog, mawk is near 8 times faster than gawk, so I am going to give mawk a go, but I got errors when trying to print the length of an array in mawk using length() function, is it not supported in mawk? or there's another way to get the length of an array in mawk?
... (3 Replies)
Discussion started by: kevintse
3 Replies
8. Programming
I follow the description of wiki (Lamport's bakery algorithm - Wikipedia, the free encyclopedia), then implement that algorithm in C, but it doesn't work, Starving is still here, is the implementation worry?
Only print out:
Thread ID: 0 START!
Thread ID: 0 END!
Thread ID: 0 START!... (2 Replies)
Discussion started by: sehang
2 Replies
9. Shell Programming and Scripting
Hello All,
I have this script that does stuff like "starting, stopping & restarting" a Daemon Process running on my machine...
My main question is why in part of my code (which you will see below) does the Array Length (i.e. ${#PIDS} )
return "1" when I know the Array is empty..?
Here is... (17 Replies)
Discussion started by: mrm5102
17 Replies
10. Shell Programming and Scripting
Hi Team,
I have an issue to split the file which is having special chracter(German Char) using awk command.
I have a different length records in a file. I am separating the files based on the length using awk command.
The command is working fine if the record is not having any... (7 Replies)
Discussion started by: Anthuvan
7 Replies
CHECKNR(1) BSD General Commands Manual CHECKNR(1)
NAME
checknr -- check nroff/troff files
SYNOPSIS
checknr [-a.x1.y1.x2.y2. ... .xn.yn] [-c.x1.x2.x3 ... .xn] [-s] [-f] file
DESCRIPTION
The checknr utility checks a list of nroff(1) or troff(1) input files for certain kinds of errors involving mismatched opening and closing
delimiters and unknown commands. If no files are specified, checknr checks the standard input.
The following options are available:
-a Add additional pairs of macros to the list of known macros. This must be followed by groups of six characters, each group defining a
pair of macros. The six characters are a period, the first macro name, another period, and the second macro name. For example, to
define a pair .BS and .ES, use '-a.BS.ES'
-c Define commands which would otherwise be complained about as undefined.
-f Request checknr to ignore 'f' font changes.
-s Ignore 's' size changes.
Delimiters checked are:
1. Font changes using fx ... fP.
2. Size changes using sx ... s0.
3. Macros that come in open ... close forms, for example, the .TS and .TE macros which must always come in pairs.
The checknr utility is intended for use on documents that are prepared with checknr in mind, much the same as lint(1). It expects a certain
document writing style for 'f' and 's' commands, in that each 'fx' must be terminated with 'fP' and each 'sx' must be terminated with
's0'. While it will work to directly go into the next font or explicitly specify the original font or point size, and many existing docu-
ments actually do this, such a practice will produce complaints from checknr. Since it is probably better to use the 'fP' and 's0' forms
anyway, you should think of this as a contribution to your document preparation style.
The checknr utility knows about the ms(7) and me(7) macro packages.
SEE ALSO
nroff(1), troff(1), me(7), ms(7)
DIAGNOSTICS
Complaints about unmatched delimiters. Complaints about unrecognized commands. Various complaints about the syntax of commands.
BUGS
There is no way to define a 1 character macro name using -a.
Does not correctly recognize certain reasonable constructs, such as conditionals.
HISTORY
The checknr command appeared in 4.0BSD.
BSD
June 6, 1993 BSD