03-14-2012
Hi jim, these are the output of the two commands:
Linux irene-desktop 2.6.32-39-generic #86-Ubuntu SMP Mon Feb 13 21:47:32 UTC 2012 i686 GNU/Linux
/bin/bash
Many thanks.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, i would really appreciate any help anyone can give with the following info.
Thanks in advance.
I need to run a search on a file that contains thousands of trades, each trade is added into the file in blocks of 25 lines. i know the search has to take place between a time stamp specified... (4 Replies)
Discussion started by: sp3arsy
4 Replies
2. Shell Programming and Scripting
i am having the text data file as below.
Processing 1
a 111111
b
c
d
e
f
Processing 2
a
b 222222
c
erorr
d
e
f
Processing 3
a
b 3333 (1 Reply)
Discussion started by: expert
1 Replies
3. Programming
Dear All,
I am having a requirement to find the difference between 2 files and generate a discrepancy report out of it as an html page. I prefer using diff -y file1 file2 since it gives user friendly layout to know any discrepancy in the record and unique records among the 2 file. Here's how it... (12 Replies)
Discussion started by: Badhrish
12 Replies
4. Shell Programming and Scripting
Source File:
google.cz http://czechrepublic.google.com/
http://czechrepublic.google.cz http://czechrepublic.google.com/
http://brno.google.cz http://brno.google.com/
Fail Code
root@arisvm ~/g] $ cat trya
rm -f ss
for i in a.txt
do
#b=`cat $i|awk '{print $1}'`
#c=`cat $i|awk '{print... (4 Replies)
Discussion started by: invinzin21
4 Replies
5. Shell Programming and Scripting
Hi,
I have a .csv file that contains a variety of fields for 60 clients: USERNAME, PASSWORD, and COMMENTS. I have a template file which contains a great deal of data for each client and has the fields USERNAME, PASSWORD, and COMMENTS that has to be filled with the values of USERNAME,... (1 Reply)
Discussion started by: mojoman
1 Replies
6. Shell Programming and Scripting
I am learning AWK by trying out examples whenever I need a specific conversion. I would like to edit the 'before.txt' so that all the missing data points between 140-150 are added and shown as 0.
before.txt
145 2
148 13
149 17
to below,
140 0
141 0
142 0
143 0
144 0
145 2
146 0... (5 Replies)
Discussion started by: numareica
5 Replies
7. Shell Programming and Scripting
Hi All,
I'd always appreciate all helps from this website. I would like to relocate strings based on the index number from an index file.
Index numbers are shown on the first column in the index file (index.txt) and I would like to relocate "path" based on index numbers. Paths are placed... (11 Replies)
Discussion started by: jypark22
11 Replies
8. Shell Programming and Scripting
I am preparing a morphological grammar of Marathi to be placed in open-source.
I have two files.
The first file called Adverbs contains a whole list of words, one word per line
A sample is given below:
आधी
इतक
इतपत
उलट
एवढ
ऐवजी
कड
कडनं
कडल
कडील
कडून
कडे
करता
करिता
खाल (2 Replies)
Discussion started by: gimley
2 Replies
9. UNIX for Beginners Questions & Answers
I cannot seem to get what should be a simple awk one-liner to work correctly and cannot figure out why. I would like to use patterns from a specific field in one file as regex to search for matching strings in the entire line ($0) of another file.
I would like to output the lines of File2 which... (1 Reply)
Discussion started by: jvoot
1 Replies
10. UNIX for Beginners Questions & Answers
Hello all, I can get close to what I am looking for but cannot seem to hit it exactly and was wondering if I could get your help.
I have the following sample from textfile with many thousands of lines: File 1
PS001,001 HLK
PS002,004 L<G
PS004,002 XNN
PS004,006 BVX
PS004,006 ZBX=... (7 Replies)
Discussion started by: jvoot
7 Replies
LEARN ABOUT DEBIAN
prophet::cli::texteditorcommand
Prophet::CLI::TextEditorCommand(3pm) User Contributed Perl Documentation Prophet::CLI::TextEditorCommand(3pm)
separator_pattern
A pattern that will match on lines that count as section separators in record templates. Separator string text is remembered as $1.
comment_pattern
A pattern that will match on lines that count as comments in record templates.
build_separator $text
Takes a string and returns it in separator form. A separator is a line of text that denotes a section in a template.
build_template_section header => '=== foo ===' [, data => 'bar']
Takes a header text string and (optionally) a data string and formats them into a template section.
try_to_edit template => $tmpl [, record => $record ]
Edits the given template if possible. Passes the updated template in to process_template (errors in the updated template must be handled
there, not here).
handle_template_errors error => 'foo', template_ref => $tmpl_str, bad_template => 'bar', rtype => 'ticket'
Should be called in "process_template" if errors (usually validation ones) occur while processing a record template. This method prompts
the user to re-edit and updates the template given by "template_ref" to contain the bad template (given by the arg "bad_template" prefixed
with the error messages given in the "error" arg. If an errors section already exists in the template, it is replaced with an errors
section containing the new errors.
If the template you are editing is not section-based, you can override what will be prepended to the template by passing in the
"errors_pattern" argument, and passing in "old_errors" if a template errors out repeatedly and there are old errors in the template that
need to be replaced.
Other arguments are: "rtype": the type of the record being edited. All arguments except overrides ("errors_pattern" and "old_errors" are
required.
calling code must implement
run process_template
perl v5.10.1 2009-08-17 Prophet::CLI::TextEditorCommand(3pm)