On Unix, it is easy to get those lines that match a pattern, by
grep pattern file
or those lines that do not, by
grep -v pattern file
but I am editing a file on Windows with Ultraedit.
Ultraedit support regular expression based search and replace.
I can delete all the lines that match a... (1 Reply)
I am really need help with the regular expression in SED. From input file, I need to extract lines that have the port number (sport or dport) as defined. The input file is something like this
time=1209515280-1209515340 dst=192.168.133.202 src=208.70.8.23 bytes=2472 proto=6 sport=80 dport=1447... (6 Replies)
Hi there,
I need help about using sed. Iam using sed to delete and print lines that match the port number as listed in sedfile. I am using -d and -p command for delete match port and print them respectively. However, the output is not synchonize where the total deleted lines is not similar with... (3 Replies)
Hi All,
Below is my requirement. Whatever coming in between ' ', needs to delete.
Input File Contents:
==============
This is nice 'boy'
This 'is
bad
boy.' Got it
Expected Output
===========
This is nice
This
Got it (4 Replies)
Hello sed gurus. I am using ksh on Sun and have a file created by concatenating several other files. All files contain header rows. I just need to keep the first occurrence and remove all other header rows.
header for file
1111
2222
3333
header for file
1111
2222
3333
header for file... (8 Replies)
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
I have a file
Line 1 a
Line 22
Line 33
Line 1 b
Line 22
Line 1 c
Line 4
Line 5
I want to delete all lines before last occurrence of a line which contains something which is defined in a variable. Say a variable var contains 'Line 1', then I need the following in the output.
... (21 Replies)
Discussion started by: Soham
21 Replies
LEARN ABOUT OSF1
m2ps
m2ps(1) General Commands Manual m2ps(1)NAME
m2ps - Converts text in Mule internal code to PostScript format
SYNOPSIS
m2ps [options] <infile> outfile
OPTIONS
Uses the specified file as a header for PostScript output. The default header file is /usr/i18n/mule/lib/mule/$VERSION/etc/m2ps.ps. Spec-
ifies the resolution of the output device. The default value is 300. Specifies FontScale in points. The default value is 10. Specifies
LinePitch in points. The default value is 14. Specifies the number of lines on a page. The default value is 56. Specifies TopMargin in
points. The default value is 800. Specifies LeftMargin in points. The default value is 30. Indicates that your PostScript printer has
limited memory. Indicates that your PostScript printer has a large memory. This is the default. Indicates A4 paper size. This is the
default. Indicates US-LETTER paper size. Shows the version number of m2ps software. Uses the specified font server. Refer to the xfs(1X)
referent page for information about font servers. Uses the specified path to find the bdf.tbl file that maps leading codes to their asso-
ciated fonts. The default path is /usr/i18n/mule/lib/mule/$VERSION/etc/bdf.tbl.
OPERANDS
Specifies the file containing text in mule *internal* code. Specifies the file containing the output PostScript program.
DESCRIPTION
The m2ps command converts text encoded in Mule internal code (called *internal*) to a PostScript file that can be printed. To handle text
not coded in *internal* code, you first have to convert the code to *internal*. You can use the coco command to perform this code conver-
sion. Alternatively, you can run the any2ps program to do both jobs (convert the code to *internal* and also generate the PostScript
file).
Compaq's implementation of the m2ps command is derived from software supplied by the Free Software Foundation. However, the original code,
written by Ken'ichi Handa of the Electrotechnical Laboratory in Japan, uses BDF files that are available for public domain fonts. BDF files
are not available for fonts supplied with the Tru64 UNIX product. Therefore, the Compaq implementation of m2ps uses the X font server,
along with a table (bdf.tbl), to obtain printing information.
Each line of the bdf.tbl file maps a leading code value to a font name. A line contains 2 columns, separated by a colon (:), for the lead-
ing code value and font name, respectively. You can modify the file if you want m2ps to use different fonts for one or more of the leading
codes.
FILES
PostScript header file Sample PostScript file created by m2ps. The original file is in mule's documentation directory. Table that maps
leading codes to font names.
SEE ALSO
Commands: any2ps(1), coco(1), mule(1), xfs(1X)m2ps(1)