I'm trying to do a script that will look for a log file if it is already there change the name to another name.
I.E
if log.0 is there
rename to log.1
rename log.1 to log.2
rename log.2 to log.3 and so on.
Only thing is I got no idea where or what is the best command to use for this? ... (3 Replies)
We have to convert a sequential file to a 80 char line sequential file (HP UX platform).The sequential file contains special characters. which after conversion of the file to line sequential are getting coverted into "new line" or "tab" and file is getting distorted. Is there any way to read these... (2 Replies)
hello i'm trying to figure out how to number a blank line. For instance this :
sed '/./=' file | sed '/./N; s/\n/ /'
gives me
1 aaaa
2 bbbbbb
4 cccccc
5 ffkkkfff
6 ffsdfdfs
I would like something like this:
1 aaaaa
2
3 bbbbbb
4
5 cccccc
And so... (6 Replies)
Hi,
All I need to do is number a file.
The file looks like this
>
JJJJJJJJJJJJJJJJJJJJJ
>
JKJKJKKKKKKJJJ
>
MMMMYKKKJKKK
what I want to do is number it so that theres a numerical value beside the >.
>1
JJJJJJJJJJJJJJJJJJJJJ
>2
JKJKJKKKKKKJJJ (2 Replies)
Hi
I have a file sequential way i.e. written in contineous mode and the Record Seperator is AM from which the record is seperated .Now to process I have to make line sequential,and more over record length is not same it varies as per the input address,
AM1234563 John Murray 24 Old streeet old... (5 Replies)
Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX
I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Would it be possible for a script to duplicate a file and incrementally number it?
File in: XXX_007_0580_xxxx_v0016.aep
File out: XXX_007_0580_xxxx_v0017.aep
If someone knows of a way I'd love to see it.
Thanks! (7 Replies)
The awk below produces an output with the original header and only the matching lines (which is good), but the output where the original line numbering in the match found on is used. I can not figure out how to sequentially number the output instead of using the original.
I did try to add... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT DEBIAN
m17n-dump
m17n-dump(1) The m17n Library m17n-dump(1)NAME
m17n-dump - dump text image
SYNOPSIS
m17n-dump [ OPTION ... ] [ FILE ]
DESCRIPTION
Dump a text as PNG image file.
The PNG file is written to a file created in the current directory with the name 'BASE.png' where BASE is the basename of FILE. If FILE is
omitted, text is read from standard input, and the image is dumped into the file 'output.png'.
The following OPTIONs are available.
o -s SIZE
SIZE is the font size in point. The default font size is 12 point.
o -d DPI
DPI is the resolution in dots per inch. The default resolution is 300 dpi.
o -p PAPER
PAPER is the paper size: a4, a4r, a5, a5r, b5, b5r, letter, WxH, or W. In the case of WxH, W and H are the width and height in millimeter.
In the case of W, W is the width in millimeter. If this option is specified, PAPER limits the image size. If FILE is too large for a single
page, multiple files with the names 'BASE.01.png', 'BASE.02.png', etc. are created.
o -m MARGIN
MARGIN is the horizontal and vertical margin in millimeter. The default margin is 20 mm. It is ignored when PAPER is not specified.
o -c POS
POS is the character position of cursor to draw. By default, cursor is not drawn.
o -x
FILE is assumed to be an XML file generated by the serialize facility of the m17n library, and FILE is deserialized before an image is
created.
o -w
Each line is broken at word boundary.
o -f FILTER
FILTER is a string containing a shell command line. If this option is specified, the PNG image is not written info a file but is given to
FILTER as standard input. If FILTER contains '%s', that part is replaced by a basename of FILE. So, the default behaviour is the same as
specifying 'cat >
%s.png' as FILTER.
If FILTER is just '-', the PNG image is written to stdout.
o -a
Enable anti-alias drawing.
o --family FAMILY
Prefer a font whose family name is FAMILY.
o --language LANG
Prefer a font specified for the language LANG. LANG must be a 2-letter code of ISO 630 (e.g. 'en' for English).
o -fg FOREGROUND
Specify the text color. The supported color names are those of HTML 4.0 and '#RRGGBB' notation.
o -bg BACKGROUND
Specify the background color. The supported color names are the same as FOREGROUND, except that if 'transparent' is specified, make the
background transparent.
o -r
Specify that the orientation of the text is right-to-left.
o -q
Quiet mode. Don't print any messages.
o --version
Print the version number.
o -h, --help
Print this message.
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 m17n-dump(1)