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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT LINUX
unroff
UNROFF(1) General Commands Manual UNROFF(1)NAME
unroff - convert troff documents to plain text
SYNTAX
unroff [ -E ] [ -J ] [ -8 ] [ -mxx ] [ file ... ]
DESCRIPTION
unroff processes documents written to be formatted with troff (or nroff, or any of the other *roff variants) and converts them to plain
text. This is similar to what deroff does, but the result is sometimes better than deroff output.
Optional flags may be given to modify the operation of unroff, as follows:
-E Echo input tokens as they are read. Useful mainly for debugging.
-J Join output lines that would be part of a single paragraph so they form a single output line. This is useful if you plan to move
the resulting output into a document formatter that treats paragraphs as a single line. The default is to do line wrapping accord-
ing to the line length specified in the input document.
-8 Write 8-bit ISO Latin-1 (ISO 8859-1) characters. This option may be useful for producing output intended to be viewed on devices
capable of 8-bit character display. Without this option, 8-bit Latin-1 characters will generall appear in the output as
``[[name]]'' where ``name'' is the troffcvt internal name for the character, e.g., ``[[Aacute]]''. For some of these characters, an
ASCII approximation will be used if something reasonably close is available.
-mxx Specify macro package, usually -man, -me, -mm, or -ms.
DIAGNOSTICS
line length clipped to nnn chars. A very long line length was requested, so long that it would likely result in output line assembly buf-
fer overflow. The length is clipped to prevent this.
output buffer capacity exceeded. This means some line is so long that it couldn't be collected in the output line assembly buffer. Most
likely this signals a bug in tc2text, since the length is supposed to be kept within reasonable bounds (see previous paragraph).
SEE ALSO troffcvt(1), tc2text(1)WHO-TO-BLAME
Paul DuBois, dubois@primate.wisc.edu.
BUGS
unroff doesn't do so well with tables, particularly tables with multiple-line cells. Table centering isn't handled.
UNROFF(1)