Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cb(1) [osf1 man page]

cb(1)							      General Commands Manual							     cb(1)

NAME
cb - Converts C source code into a readable form SYNOPSIS
cb [-js] [-llength] [file...] The cb command reads C programs from standard input or from specified files and writes them to standard output in a form that shows, through indentations and spacing, the structure of the code. OPTIONS
Joins split lines. Splits lines that are longer than length bytes. Formats the source code according to the style of Kernighan and Ritchie in The C Programming Language (Prentice-Hall, Inc., 1978; Englewood Cliffs, New Jersey.) DESCRIPTION
When called without options, the cb command does not split or join lines. Note that punctuation in preprocessor statements can cause indentation errors. EXAMPLES
To create a version of pgm.c called pgm.pretty.c that is easy to read, with no lines longer than 60 bytes, enter: cb -l60 pgm.c > pgm.pretty.c SEE ALSO
Commands: indent(1) cb(1)

Check Out this Related Man Page

fmt(1)							      General Commands Manual							    fmt(1)

NAME
fmt - format text SYNOPSIS
width] [file...] DESCRIPTION
The command is a simple text formatter that fills and joins lines to produce output lines of (up to) the number of characters specified in the width option. The default width is 72. concatenates the arguments. If none are given, formats text from the standard input. Blank lines are preserved in the output, as is the spacing between words. does not fill lines beginning with a period for compatibility with Nor does it fill lines starting with Indentation is preserved in the output and input lines with differing indentation are not joined (unless is used). can also be used as an in-line text filter for the command: reformats the text between the cursor location and the end of the paragraph. Options recognizes the following options: Crown margin mode. Preserve the indentation of the first two lines within a paragraph and align the left margin of each subsequent line with that of the second line. This is useful for tagged paragraphs. Split lines only. Do not join short lines to form longer ones. This prevents sample lines of code, and other such "formatted" text, from being unduly combined. Fill output lines to up to width columns. WARNINGS
The width option is acceptable for BSD compatibility, but it may go away in future releases. SEE ALSO
nroff(1), vi(1). fmt(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

does anybody know what the bcb feature is in EMC?

does anybody know what the bcb feature is in EMC? (5 Replies)
Discussion started by: jigarlakhani
5 Replies

2. Shell Programming and Scripting

date=`/usr/ucb/expr $date1 - 1`

Hi I need to subtract one day from date1=`/bin/date +%d` So I used date=`/usr/ucb/expr $date1 - 1` The only thing is if date1 is a single digit like 08, date will be 8 instead of 08. How can I avoid losing 0? Thanks for all your help!!! (4 Replies)
Discussion started by: whatisthis
4 Replies

3. Cybersecurity

lost root password using (SAM) trusted security

I have used the system administration management trusted security system and in the process the root password have been changed or lost. Is there any possible way to recover root status after this incident:( (5 Replies)
Discussion started by: jordanrt
5 Replies

4. Solaris

/usr/bin/ps -p equivalent in ucb version

Hi, Is there an option in /usr/ucb/ps version to get a selected list of processes like in /usr/bin/ps -p"1 3 5" option? Thanks, Fredy (7 Replies)
Discussion started by: fredy
7 Replies

5. AIX

AIX and TCB

Hi I have a question with regards to AIX 5.3 & TCB. I have a client that is requesting TCB to be installed in AIX. However it seems that the perception of TCB is that it causes major headaches when it comes to configuring the system in real world environments, such as large scale Oracle... (15 Replies)
Discussion started by: kimyo
15 Replies

6. Shell Programming and Scripting

long process listing with /usr/ucb/ps weird behaves

hello I am trying to run the following script to get the my-progam pid: #!/bin/ksh tt=`/usr/ucb/ps| grep -i $1| grep -v grep | awk '{print $2}'` echo $tt When I run the script I get the more PIDs $./test.sh my-program 12033 15033 15034 Actually my-program's PID is 12033....I... (6 Replies)
Discussion started by: sreeniatbp
6 Replies

7. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

8. Solaris

libucb.s0.1: open failed...

Hi all. I try to start an application, but libucb.so1 is missing. # appl23 # appl23ld.so.1: appl23: fatal: libucb.so1: open failed: No such file or directory killed # # ldd appl23 libXm.so.3 => /usr/lib/libXm.so.3 libMrm.so.3 => /usr/lib/libMrm.so.3 ... (14 Replies)
Discussion started by: wolfgang
14 Replies

9. AIX

Implementing a TCB-Environment in AIX

Habe folgende Frage an der ich mich schwer tue, Welche Möglichkeiten bietet IBM's Betriebssystem "AIX" hinsichtlich der Ausbildung einer TCB-Umgebung? vielen Dank (6 Replies)
Discussion started by: Invisibleye86
6 Replies

10. What is on Your Mind?

MacBook Air Anyone?

I am thinking to purchase a new MacBook Air, 13 inch. Anyone have a MacBook Air? What do you think about it? Seems expensive, a bit. Is it worth it? (9 Replies)
Discussion started by: Neo
9 Replies

11. Linux

LinuxCBT/UnixCBT video training recommended?

Hi Is anyone here customer of LinuxCBT and can say something about the quality of their videos? Do you recommend me purchase video training of them? I am primary interested in OpenLDAP training. Link Linux Training, Open Source Training, Learn Linux and Open Source (6 Replies)
Discussion started by: slashdotweenie
6 Replies

12. OS X (Apple)

Upgrade to Lion (Version 10.7.3) for MacBook Air

Anyone running Lion on their Mac? I'm currently running Snow Leopard (v. 10.6.8) and have been hesitant to upgrade to 10.7.X. Anyone at all running Lion? Any experiences good or bad to report? Thanks! (7 Replies)
Discussion started by: Neo
7 Replies

13. Solaris

Retina display Macbook Pro and Solaris compatibility

Has anyone attempted to install Solaris 11 on a Macbook Pro with the new Retina display? I'm considering setting up a triple boot scenario with Windows 7, Mac OS X and Solaris 11. My goals are to learn the OS better and to gain daily exposure to it by running it as a desktop OS whenever possible. (11 Replies)
Discussion started by: DustinT
11 Replies

14. Red Hat

GTK bug? xcb_io.c: 140

Hi all, Trying to get my application ready for distribution. All looking good until I started getting this error and program termination: My-Program: xcb_io.c:140 dequeue_pending_request: Assertion `req == dpy->xcb->pending_requests` failed Has anyone come accross this? I am working in... (7 Replies)
Discussion started by: fedora18
7 Replies

15. UNIX for Advanced & Expert Users

Disabling CBC Cipher mode causes login problems

Hi, As part of the security hardening activity in our team, we have to disable CBC mode cipher encryption, and enable CTR or GCM cipher mode encryption. To do this, in sshd_config I comment out these lines : Ciphers aes128-cbc,blowfish-cbc,3des-cbc MACS hmac-sha1,hmac-md5 and add... (9 Replies)
Discussion started by: anaigini45
9 Replies