@ctsgnb
Good way to get 2nd last line no but I guess above script needs to be modified as below:
Ignore line 1,2 and the last one (No change)
For the 3rd line, Replace only if TOCHANGE is in 12th to 19th position.
For other lines (4th - 2nd last), Replace only if TOCHANGE is in 9th to 16th position.
Last edited by anurag.singh; 12-15-2010 at 10:31 AM..
Hi Folks,
I have a file with all fields defined by byte position, but any field can be empty so I cannot print lines based on a search of specific columns. I need to print all lines of this file where the string of two characters at byte position 100-101 contains the number 27. Any ideas?
... (4 Replies)
--------------------------------------------------------------------------------
Have to check in a file that the lines starting with 620 and 705
are ending at same posiotin.
82012345
62023232323
70523949558
62023255454
9999
In the above lines, i have to check the lines starting... (1 Reply)
Hello All,
I am new to this forum. I am currently facing a problem in manipulating files.
I have two files called old-matter and new-matter
# cat old-matter
abc: this, is a, sample, entry
byi: white board, is white in color
rtz: black, board is black
qty: i tried, a lot
asd: no... (1 Reply)
Hi, guys. I have one question:
How can I search for a line with certain string in it and then insert a string into this line?
For example:
There is a file called shadow, the contents of it are below:
**************************
...
yuanz:VIRADxMsadfDF/Q:0:0:50:7:::... (9 Replies)
I am trying to use sed to replace specific characters at a specific position in the file with a different value... can this be done?
Example:
File:
A0199999123
A0199999124
A0199999125
Need to replace 99999 in positions 3-7 with 88888.
Any help is appreciated. (5 Replies)
Greetings.
I don't have experience programing scripts. I need to insert a string in a specific position of another string on another file (last.cfg), for example:
File last.cfg before using script:
login_interval=1800
lcs.machinename=client04
File last.cfg after using script:... (4 Replies)
I asked this before, but my problem got more complicated. Heres what I am trying to do:
I'm trying to replace a string at a certain location with another string.
Heres the file I'm trying to change:
\E
I want to replace the escape code at the 3rd line, 2nd column with this escape code... (3 Replies)
Discussion started by: tinman47
3 Replies
LEARN ABOUT DEBIAN
xml2brl
XML2BRL(1) User Commands XML2BRL(1)NAME
xml2brl - Translate an xml or a text file into an embosser-ready Braille file.
SYNOPSIS
xml2brl [OPTION] [inputFile] [outputFile]
DESCRIPTION
Translate an xml or a text file into an embosser-ready braille file. This includes translation into grade two, if desired, mathematical
codes, etc. It also includes formatting according to a built-in style sheet which can be modified by the user.
If inputFile is not specified or '-' input is taken from stdin. If outputFile is not specified the output is sent to stdout.
-h, --help
display this help and exit
-v, --version
display version information and exit
-f, --config-file
name a configuration file that specifies how to do the translation
-b, --backward
backward translation
-r, --reformat
reformat a braille file
-p, --poorly-formatted
translate a poorly formatted file
-t, --html
html document, not xhtml
-C, --config-setting
specify particular configuration settings They override any settings that are specified in a config file
-l, --log-file
write errors to log file instead of stderr
AUTHOR
Written by John J. Boyer.
REPORTING BUGS
Report bugs to <john.boyer@abilitiessoft.com>.
COPYRIGHT
Copyright (C) 2009 ViewPlus Technologies, Inc. and JJB Software, Inc. License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for xml2brl is maintained as a Texinfo manual. If the info and xml2brl programs are properly installed at your
site, the command
info liblouisxml
should give you access to the complete manual.
xml2brl (liblouisxml) 2.4.0 June 2012 XML2BRL(1)