Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to remove mutilple enrty in a single line in unix Post 302291787 by kaprus on Thursday 26th of February 2009 10:22:06 AM
Old 02-26-2009
it starts with subsD,<String>,hlr.

its fixed pattern.
 

10 More Discussions You Might Find Interesting

1. Programming

remove single-line comment

Does anyone knows how to write a program to remove single-line comment in C program? that means it don't read anything behind // (3 Replies)
Discussion started by: Icy002
3 Replies

2. UNIX for Dummies Questions & Answers

Trying to remove single character from a line

Here is a sample code grep '903' -i user.txt | tail -2 | awk '{print $2}' | sed 's/B//g' the input file has data as such 903-xxx-xxxxB 903-xxx-xxxxB It is a dialer file i want to remove the "B" any help thanks (5 Replies)
Discussion started by: Iz3k34l
5 Replies

3. UNIX for Dummies Questions & Answers

run command Unix on a single line

Hi everybody.. I need to enter in bash mode and then run a command and this just in a single command line. I tried : "bash ^M| somecommand" but nothing.. How do I do to simulate the return button just right after the bash command ? Thanks.. (8 Replies)
Discussion started by: Riddick61
8 Replies

4. Shell Programming and Scripting

Single/Multiple Line with Special characters - Find & Replace in Unix Script

Hi, I am creating a script to do a find and replace single/multiple lines in a file with any number of lines. I have written a logic in a script that reads a reference file say "findrep" and populates two variables $FIND and $REPLACE print $FIND gives Hi How r $u Rahul() Note:... (0 Replies)
Discussion started by: r_sarnayak
0 Replies

5. Shell Programming and Scripting

Single command for add 2 columns and remove 2 columns in unix/performance tuning

Hi all, I have created a script which adding two columns and removing two columns for all files. Filename: Cust_information_1200_201010.txt Source Data: "1","Cust information","123","106001","street","1-203 high street" "1","Cust information","124","105001","street","1-203 high street" ... (0 Replies)
Discussion started by: onesuri
0 Replies

6. UNIX for Advanced & Expert Users

unix command for terminal - view sequences as a single line?

Hello, I'm looking for some code that will list sequences of files as a single line. ie, sequences of files like this: filename.1.ext filename.2.ext filename.3.ext filename.4.ext filename.5.ext filename.6.ext filename.7.ext filename.8.ext filename.9.ext filename.10.ext would... (6 Replies)
Discussion started by: kentm
6 Replies

7. Shell Programming and Scripting

Multiple lines in a single column to be merged as a single line for a record

Hi, I have a requirement with, No~Dt~Notes 1~2011/08/1~"aaa bbb ccc ddd eee fff ggg hhh" Single column alone got splitted into multiple lines. I require the output as No~Dt~Notes 1~2011/08/1~"aaa<>bbb<>ccc<>ddd<>eee<>fff<>ggg<>hhh" mean to say those new lines to be... (1 Reply)
Discussion started by: Bhuvaneswari
1 Replies

8. UNIX for Dummies Questions & Answers

Remove multi line and single line comments

Hi, I am trying to remove multi line and single line comments like examples below I have tried this pattern. it works fine for single line comments and multi line comments in a single line only. but this fails when the comments are extended in multiple lines as shown in the comment 2 of... (3 Replies)
Discussion started by: ahmedwaseem2000
3 Replies

9. Shell Programming and Scripting

Remove single-line breaks only in document

Regarding copy/pasted text of copyright-free book from archive.org (link below), in attempt to expand single-line-break paragraph text (not section headings or paragraph breaks) to wider right margin, Justify or Wrap in LIbreOffice is not working, and Find/Replace the paragraph mark ($) wraps all... (2 Replies)
Discussion started by: p1ne
2 Replies

10. Shell Programming and Scripting

Remove single @ on line from file

Hi All, So I have to remove all the @hostnames from a file, the problem is, there are instances where @ is used for other things... For example: example text: @This is some text in between some at signs@ @This is some more text@ This is a line that will contain a username and his/her... (5 Replies)
Discussion started by: joeg1484
5 Replies
term(4) 						     Kernel Interfaces Manual							   term(4)

NAME
term - Terminal driver tables for nroff DESCRIPTION
The nroff(1) command uses driver tables to customize its output for various types of output devices. These driver tables are written as C programs and compiled and installed in /usr/share/lib/term/tabname. The name specifier is the name of a terminal type as used with nroff -Tname. The structure of the tables is as follows: #define INCH 240 struct { int bset; int breset; int Hor; int Vert; int Newline; int Char; int Em; int Halfline; int Adj; char *twinit; char *twrest; char *twnl; char *hlr; char *hlf; char *flr; char *bdon; char *bdoff; char *ploton; char *plotoff; char *up; char *down; char *right; char *left; char *codetab[256-32]; char *zzz; } t; The fields have the following meanings: Bits to set in the c_oflag field of the termio structure before output. For further information, see tty(7). Bits to reset in the c_oflag field of the termio structure before output. Horizontal resolution in fractions of an inch. Vertical resolution in fractions of an inch. Space moved by a newline (linefeed) character in fractions of an inch. Quantum of character sizes in fractions of an inch (that is, a character is a multiple of Char units wide). Size of an em in fractions of an inch. Space moved by a half-linefeed (or half-reverse-linefeed) character in fractions of an inch. Quantum of white space in fractions of an inch (that is, white spaces are a multiple of Adj units wide). Note: if this value is less than the size of the space character (in units of Char; see the following fields for how the sizes of characters are defined), nroff outputs fractional spaces using plot mode. Also, if nroff is used with the -e flag, it sets Adj to equal Hor. The set of characters used to initialize the terminal in a mode suitable for nroff The set of characters used to restore the terminal to normal mode. The set of characters used to move down one line. The set of characters used to move up one-half line. The set of characters used to move down one-half line. The set of characters used to move up one line. The set of charac- ters used to turn on hardware boldface mode, if any. The set of characters used to turn off hardware boldface mode, if any. The set of characters used to turn on hardware italics mode, if any. The set of characters used to turn off hardware italics mode, if any. The set of characters used to turn on hardware plot mode (for Diablo type mechanisms), if any. The set of characters used to turn off hardware plot mode (for Diablo type mechanisms), if any. The set of characters used to move up one resolution unit (Vert) in plot mode, if any. The set of characters used to move down one resolution unit (Vert) in plot mode, if any. The set of charac- ters used to move right one resolution unit (Hor) in plot mode, if any. The set of characters used to move left one resolution unit (Hor) in plot mode, if any. Definition of characters needed to print an nroff character on the terminal. The first byte is the number of character units (Char) needed to hold the character; that is, ``01'' is one unit wide, ``02'' is two units wide, and so on. The high-order bit (0200) is on if the character is to be underlined in underline mode (.ul). The rest of the bytes are the characters used to produce the character in question. If the character has the sign (0200) bit on, it is a code to move the termi- nal in plot mode. It is encoded as follows: Vertical motion Horizontal motion Negative (up or left) motion Positive (down or right) motion Number of such motions to make A zero terminator at the end. All quantities that are in units of fractions of an inch should be expressed as INCH*num/denom, where num and denom are respectively the numerator and denominator of the fraction; that is, 1/48 of an inch would be written as ``INCH1/48''. If any sequence of characters does not pertain to the output device, that sequence should be given as a null string. The source code for the terminal name is in /usr/share/lib/term/tabname. When a new terminal type is added, the makefile Makefile.install in that directory should be updated. Building New nroff Drivers The /usr/share/lib/term/mktab.o object module is an nroff compiler-independent driver table generator tool. It is intended to be used as follows: cc -o /tmp/mktab tabxxx.c mktab.o, /tmp/mktab > tabxx Default nroff Drivers The following nroff drivers are provided: Dumb 10-pitch printer with no halfline or upline capability. Generic crt terminal (linked to lpr). LN03S ASCII printer. VT100 crt terminal. Default pseudo-printer device for the man(1) and catman(8) commands. NOTE: The lp driver as supplied by Compaq is linked to the vt100 device. Your system administrator can change the definition of lp to another device. FILES
Driver tables Source file for the driver tables RELATED INFORMATION
tty(7) delim off term(4)
All times are GMT -4. The time now is 09:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy