07-17-2009
To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
Thank You.
The UNIX and Linux Forums
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
I have a very large file where say each line is made up of 80 characters.
I want to cut the characters from 20-30 and 50-60 from each line and then insert a delimiter between them (# or | etc).
eg
input file
000000000131.12.20990000590425246363375670011200140406... (5 Replies)
Discussion started by: PradeepRed
5 Replies
2. Shell Programming and Scripting
Hi
I have a file in the foll. format
*RECORD*
*FIELD NO*
.......
.......
*FIELD TX*
Data
*FIELD AV*
Data
*FIELD RF*
*RECORD*
*FIELD NO*
.......
.......
*FIELD TX*
Data
*FIELD RF* (4 Replies)
Discussion started by: dunstonrocks
4 Replies
3. UNIX for Dummies Questions & Answers
Dear All,
I am working with windoes OS but remote a linux machine. I wonder the way to copy an paste some part of a huge file in linux machine.
the contain of file like as follow:
...
dump annealling all custom 10 anneal_*.dat id type x y z q
timestep 0.02
run 200000
Memory... (2 Replies)
Discussion started by: ariesto
2 Replies
4. Shell Programming and Scripting
Hi everybody,
I have two XML files.
I am working on a script that could copy and paste the contents of the first xml file to the desired location in the second xml file.
Here is my first XML file.
This is the second XML file.
Finaly, I wnat to obtain something like that :
... (2 Replies)
Discussion started by: lsaas
2 Replies
5. Shell Programming and Scripting
I'm attempting to insert multiple lines before a line matching a given search pattern. These lines are generated in a separate function and can either be piped in as stdout or read from a temporary file.
I've been able to insert the lines from a file after the pattern using:
sed -i '/pattern/... (2 Replies)
Discussion started by: zksailor534
2 Replies
6. Shell Programming and Scripting
I have a file and need to only select users that have a shell of “/bin/bash” in the line using awk or sed please help (4 Replies)
Discussion started by: boyboy1212
4 Replies
7. Shell Programming and Scripting
I have an input file
12.4 1.72849432773174e+01 -7.74784188610632e+01
12.5 9.59432114416327e-01 -7.87018212757537e+01
15.6 5.20139995965960e-01 -5.61612429666624e+01
29.3 3.76696387248366e+00 -7.42896194101892e+01
32.1 1.86899877018077e+01 -7.56508762501408e+01
35 6.98857157014640e+00... (2 Replies)
Discussion started by: chrisjorg
2 Replies
8. Shell Programming and Scripting
Dear All,
Suppose I have a file:
1 1 1 1
2 2 2 2
3 3 3 3I want to insert new line under each old line so that the file would become:
1 1 1 1
1 1 1 1
2 2 2 2
2 2 2 2
3 3 3 3
3 3 3 3How can this be accomplished using awk (or sed)? (5 Replies)
Discussion started by: littlewenwen
5 Replies
9. UNIX for Dummies Questions & Answers
hi,
I have Multiple files with the following data :
File1
100414 DR1
END
XXXXX
Test1 Test2 Test3
Test4 Test5 Test6
END
100514 DR2
END
XXXXX
Test7 Test8 Test9
Test10 Test11 Test12
END
100614 DR3 (5 Replies)
Discussion started by: newageBATMAN
5 Replies
10. Shell Programming and Scripting
I have rrd file which is have the gaps and I want to fill it out with some value , I've got 10 NaN record and I try to populate data from 10 records be for NaN to change instead of NaN :(
<!-- 2016-05-19 14:10:00 CST / 1463638200 -->... (11 Replies)
Discussion started by: boobytrap
11 Replies
LEARN ABOUT DEBIAN
odfhighlight
ODFHIGHLIGHT(1p) User Contributed Perl Documentation ODFHIGHLIGHT(1p)
NAME
odfhighlight - search, replace and highlight text in a document
SYNOPSIS
odfhighlight "source.odt" "search string" -r "replacement" -o "target.odt"
replaces "search string" by "replacement" in the file "source.odt", highlights each replacement with a yellow (default) backgound, then
writes the resulting document as "target.odt"
odfhighlight "myfile.odt" "search string" -color "green"
highlights each occurrence of "search string" in "myfile.odt" with a green background color, without changing the text (without "-o"
option, the changes apply to "myfile.odt"
ARGUMENTS AND OPTIONS
Default behaviour
With the "minimal" command line, with only a filename and a string as arguments, each matching string is highlighted with a yellow
background and represented with the "Standard" style.
Options
-e --encoding "xxxxxx"
character set to use, if different from the default
-r --replacement "new string"
"new string" is used as a replacement for "search string"
-c --color "code"
an RGB color code, expressed either as the concatenation of
3 comma-separated decimal values (each one in the range
0..255, ex: "72,61,139" for a dark slate blue), or a 6-digit
hexadecimal number, preceded by a "#" (ex: #00ff00 for green)
or, if a colormap is available and known in your
OpenOffice::OODoc installation, a symbolic color name (ex:
"sky blue")
-s --stylename "name"
the name of the color style (default: "MyHighlight"); the
user must provide a style name that is not already in use
in the document
-p --property "property=value"
This option can be repeated; each occurrence gives an
additional property for the highlight style (font name, size,
foreground color, ...). For example, with the combination of
-p 'fo:color=#ff0000' and -p 'fo:font-size=18pt', the
highlighted text will be made of 18pt-sized, red characters.
In order to master these options, you should have some
knowledge of the Form Objects (FO) vocabulary that is used
in the OpenDocument specification.
-o --output "filename"
-t --target "filename"
an alternative filename to save the modified document, when
the source document must remain unchanged
perl v5.14.2 2010-01-11 ODFHIGHLIGHT(1p)