Visit Our UNIX and Linux User Community

Full Discussion: to make 1 2 3 into 123
Top Forums Shell Programming and Scripting to make 1 2 3 into 123 Post 302139489 by drl on Sunday 7th of October 2007 03:39:28 PM
Old 10-07-2007
Hi.

See man tr to delete characters, such as spaces and newlines ... cheers, drl
 
Test Your Knowledge in Computers #321
Difficulty: Medium
DHCP stands for Dynamic Host Configuration Port.
True or False?

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

convert 1012345601 to $10,123,456.01

i'd like to convert 1012345601 to $10,123,456.01 via aix. (7 Replies)
Discussion started by: tjmannonline
7 Replies

2. Shell Programming and Scripting

Increment ABC-123 by 1!!

in a shell script, i hav a variable declared as "ABC-123". i want to incriment th value ABC-123 by 1 so that the result will be ABC-124. Can anyone suggest a solution in shell scripting.. (4 Replies)
Discussion started by: pgmfourms
4 Replies

3. Shell Programming and Scripting

How to grep a pattern having value greater than 123 in a file?

Hi, I have a dynamically growing ascii file which has large data (both text and digits). I need to grep those lines having value greater than '123'. These numeric values may appear at anywhere in the line, hence I could not use awk to split to columns. So, please help me with the grep regular... (12 Replies)
Discussion started by: royalibrahim
12 Replies
nl(3XCURSES)						  X/Open Curses Library Functions					      nl(3XCURSES)

NAME
nl, nonl - enable/disable newline control SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib -R /usr/xpg4/lib -lcurses [ library... ] c89 [ flag... ] file... -lcurses [ library... ] #include <curses.h> int nl(void); int nonl(void); DESCRIPTION
The nl() function enables the handling of newlines. The nl() function converts newline into carriage return and line feed on output and converts carriage return into newline on input. nonl() disables the handling of newlines. The handling of newlines is initially enabled. Disabling the handling of newlines results in faster cursor motion since X/Open Curses can use the line-feed capability more efficiently. RETURN VALUES
On success, these functions return OK. Otherwise, they return ERR. ERRORS
None. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
libcurses(3XCURSES), attributes(5), standards(5) SunOS 5.11 5 Jun 2002 nl(3XCURSES)

Featured Tech Videos

All times are GMT -4. The time now is 01:09 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy