01-06-2017
Thank you both
.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
You have two files to compare by searching keyword from one file into another file
File A
23 >pp_ANSWER
24 >aa hello
25 >jau head wear
66 >jss oops
872 >aqq olps ploww oww sss
722 >GG_KILLER
..... large files
File B
Beta done
KILLER
John Mayor
calix meyers
... (5 Replies)
Discussion started by: cdfd123
5 Replies
2. Solaris
Hi,
I have a file which got only one column and got some keywords. I have another file where the keywords used in the first file are repeated in the second file.
Now I would like to know how many times each keyword from the first file is repeated in the second file.
Request your help on... (1 Reply)
Discussion started by: pointers
1 Replies
3. Shell Programming and Scripting
How to print Specific keyword, by using awk.?
prime:root:I want output.
78
1457
10000
10000
5985
307
10000
10000
10000
10000
3760
692
6656
157
696 (4 Replies)
Discussion started by: ooilinlove
4 Replies
4. Shell Programming and Scripting
Hi Guys,
I need to read a file until I find a blank line. and in the next iteration I want to continue reading from the line I find a keyword.
For ex: my file looks like
PDS_JOB_ALIAS
CRITERIA_ITEM_TYPE
PDS_JOB_CRITERIA_ITEM
CRITERIA_ITEM_TYPE
First I want to read the file... (2 Replies)
Discussion started by: infintenumbers
2 Replies
5. Shell Programming and Scripting
Hi,
In short : I have several log files and I need to find the last file with a certain keyword in it.
# ls -1tr logs
log_hostX.Jan01_0100.gz
log_hostX.Jan01_0105.gz
log_hostX.Jan01_0110.gz
log_hostX.Jan01_0115.gz
log_hostX.Jan01_0120.gz
log_hostX.Jan01_0125.gz
log_hostX.Jan01_0130.gz... (2 Replies)
Discussion started by: ejdv
2 Replies
6. Shell Programming and Scripting
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
Discussion started by: dashing201
7 Replies
7. Shell Programming and Scripting
I have input file as below I need to check for a pattern and if it is there in file then I need to print all the lines below BEGIN and END keyword. Could you please help me how to get this in AIX using sed or awk.
Input file:
ABC
******** BEGIN *****
My name is Amit.
I am learning unix.... (8 Replies)
Discussion started by: Amit Joshi
8 Replies
8. UNIX for Beginners Questions & Answers
I need to find a file and print its contents
I am trying but it is not working
find -path /opt/app-root/src/.npm/_logs -type f -name "*.log" -print
Version
$ bash -version
GNU bash, version 4.4.12(1)-release (x86_64-pc-msys) (1 Reply)
Discussion started by: SVRao19056
1 Replies
9. UNIX for Beginners Questions & Answers
I have a csv file as shown below,
xop_thy 80 avr_njk 50 str_nyu 60
avr_irt 70 str_nhj 60 avr_ngt 50
str_tgt 80 xop_nmg 50 xop_nth 40
cyv_gty 40 cop_thl 40 vir_tyk 80
vir_plo 20 vir_thk 40 ijk_yuc 70
cop_thy 70 ijk_yuc 80 irt_hgt 80
I need to align/sort the csv file based... (7 Replies)
Discussion started by: dineshkumarsrk
7 Replies
10. UNIX for Beginners Questions & Answers
I have a content.xls file as given below,
NC_020815.1 1891831 1894692 virb4_A0A0H2X8Z4_ 1 954 1945
NC_020815.1 1883937 1886123 vird4_A0A0P9KA26_ 1 729 1379
NC_020815.1 2976151 2974985 virb10_H8FLU5_Ba 1 393 478
NC_020815.1 2968797 2967745 virb6_A0A0Q5GCZ4 5 398 499... (2 Replies)
Discussion started by: dineshkumarsrk
2 Replies
LEARN ABOUT SUSE
texi2roff
Texi2roff(1) General Commands Manual Texi2roff(1)
NAME
texi2roff, texi2index - convert Texinfo documents for formatting by troff.
SYNOPSIS
texi2roff [ -me -mm -ms ] [ -iIt ] [ file ... ]
texi2index [ file ... ]
DESCRIPTION
Texi2roff translates the named files from the Texinfo macro language for TeX to the language accepted by troff(1). Files are read and pro-
cessed in order. If no file is given or if the file is - texi2roff reads the standard input.
Texi2index generates indices for documents translated by texi2roff.
OPTIONS
Texi2roff
-me -mm -ms
format the output for use with the troff macro package named.
-i translate Texinfo index commands into troff index commands. troff will then emit index entries onto the standard error output. You
may capture this output and use texi2index(1) and troff to prepare indices from it.
-I include Texinfo ``Info file'' menu and node contents and @ifinfo text in the output. This material does not appear in a Texinfo
document formatted by TeX, but may contain interesting information or be useful when searching a machine-readable document.
-t (transparent) print text affected by otherwise discarded commands, for people who are afraid of missing something. For best results
use -It.
EXAMPLES
Translate doc.texinfo using the Bourne shell sh(1). Format with troff and -ms, placing the formatted output in doc, index entries in
index, and the formatted index in doc.index.
$ texi2roff -i -ms doc.texinfo | troff -ms > doc 2> index
$ texi2index index | troff -ms >doc.index
As above, but use the C shell csh(1), nroff with -me, and transparent mode:
% (texi2roff -iIt -me doc.texinfo | nroff -me > doc ) >& index
% texi2index index | nroff -me >doc.index
DIAGNOSTICS
Errors are reported giving file name and line number.
AUTHOR
Beverly Erlebacher (erlebach@cs.toronto.edu).
BUGS
f(CW is used to change to constant-width (typewriter-like) font. If this is not the standard at your site, run your texi2roff output
through sed(1) or edit texi2roff's translation tables.
There are a number of differences in formatting details compared to Texinfo. Indentation is occasionally imperfect.
@def commands do not generate index entries.
Although Texinfo provides for a @contents and @summarycontents Table of Contents, if both are specified only the first one will appear if
-ms is used. To prevent loss of detail, texi2roff generates the same Table of Contents for both commands.
The -mm macro package regards keeps as a type of display. This can cause troff to abort in the case of a keep nested in a display or vice
versa. Either use a different macro package or remove a pair of Texinfo commands to eliminate nesting. Usually the @group...@end group is
the best to remove.
3rd Berkeley Distribution 1 Jan 90 Texi2roff(1)