06-25-2012
bartus11 and Scrutinizer
Dude!
I am so grateful to both of you.
Warm Regards,
kaaliakahn
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there
I have a file which has the lines
# Serial number for hostid
EXP_SERIAL_=""
These lines could be anywhere in the file as far as line numbers go, I would like replace these two lines with
# Serial number for hostid $var1
EXP_SERIAL_$var1="$var2"
Is there a quick and simple... (6 Replies)
Discussion started by: hcclnoodles
6 Replies
2. Shell Programming and Scripting
I have searched the forum for this - forgive me if I missed a previous post.
I have the following file:
blah blah blah
blah blah blah
blah blah blah
blah blah blah
blah blah blah
alter table "informix".esc_acct add constraint (foreign key (fi_id)
references "informix".fi ... (5 Replies)
Discussion started by: Shoeless_Mike
5 Replies
3. Shell Programming and Scripting
Hello experts,
I am new to this group and to 'SED' and 'AWK'. I have data (text file) with 5 columns (C_1-5) and 100s of lines (only 10 lines are shown below as an example). I have to find or select only the id numbers (C-1) of specific lines with '90' in the same line (of C_3) AND with '20' in... (6 Replies)
Discussion started by: kamskamu
6 Replies
4. Shell Programming and Scripting
Hello,
I'm trying to figure out how to use sed or awk to delete single lines in a file. By single, I mean lines that are not touching any other lines (just one line with white space above and below).
Example:
one
two
three
four
five
six
seven
eight
I want it to look like: (6 Replies)
Discussion started by: slimjbe
6 Replies
5. Shell Programming and Scripting
Hi,
I have a file with many lines,
then i have following list of lines(line number 5,12,19,5,and 28) i need to replace these lines of a file with another lines as shown below these text
contains special charecter like= (/:;){}
Line_number Text to replace with
5 abc... (1 Reply)
Discussion started by: MILAN KUMAR
1 Replies
6. Shell Programming and Scripting
Hi friends,
This is sed & awk type question. It is slightly different from my previous question.
I have a text file which has numbers spread all over the file. I want to sum the series of numbers (but no more than 10 numbers in series) whenever i find it and produce an output file with the... (4 Replies)
Discussion started by: kaaliakahn
4 Replies
7. Shell Programming and Scripting
Hi
I would like to know if it is possible to sum some specific fields.
I have this
x;x;x;x;x;x;x;x;467,390,611 Bytes;0.435291 GB;0.062247 GB;0.373045 GB;11,225;157
a;a;a;a;a;a;a;a;13,805,156,846 Bytes;12.857054 GB;1.838559 GB;11.018495 GB;151,063;18,933
b;b;b;b;b;b;b;b;232,797,478,723... (5 Replies)
Discussion started by: nakaedu
5 Replies
8. Shell Programming and Scripting
Data file example
I look for primary and * to isolate the interesting slot number.
slot=`sed '/^primary$/,/\*/!d' filename | tail -1 | sed s'/*//' | awk '{print $1" "$2}'`
Now I want to get the Touch line for only the associate slot number, in this case, because the asterisk... (2 Replies)
Discussion started by: popeye
2 Replies
9. Shell Programming and Scripting
Dear Unix Forums,
I am hoping you can help me with a pattern matching problem.
What am I trying to do?
I want to replace multiple lines of a text file (that match a multi-line pattern) with a single line of text. These patterns can span several lines and do not always have the same number of... (10 Replies)
Discussion started by: thefang
10 Replies
10. UNIX for Beginners Questions & Answers
In the awk piped to sed below I am trying to format file by removing the odd xxxx_digits and whitespace after, then move the even xxxx_digit to the line above it and add a space between them. There may be multiple lines in file but they are in the same format. The Filename_ID line is the last line... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT DEBIAN
feynmf
FEYNMF(1) Contributed LaTeX Utilities FEYNMF(1)
NAME
feynmf - Process LaTeX files using FeynMF
SYNOPSIS
feynmf [-hvqncfT] [-t tfm [-t tfm ...]] [-m mode]
file [file ...]
feynmf [--help] [--version] [--quiet] [--noexec] [--clean]
[--force] [--notfm] [--tfm tfm [--tfm tfm ...]]
[--mode mode] file [file ...]
DESCRIPTION
The most complicated part of using the FeynMF style appears to be the proper invocation of Metafont. The feynmf script provides a
convenient front end and will automagically invoke Metafont with the proper mode and magnification. It will also avoid cluttering system
font directories and offers an option to clean them.
OPTIONS
-h, --help
Print a short help text.
-v, --version
Print the version of feynmf.
-q, --quiet
Don't echo the commands being executed.
-n, --noexec
Don't execute LaTeX or Metafont.
-c, --clean
Offer to delete font files that have accidentally been placed in a system directory by the MakeTeXTFM and MakeTeXPK scripts (these
scripts are run by tex (and latex) in the background). This option has only been tested with recent versions of UNIX TeX.
-f, --force
Don't ask any questions.
-T, --notfm
Don't try to prepare fake ".tfm" files for the first run.
-t, --tfm tfm
Don't try guess the names of the ".tfm" files to fake for the first run and use the given name(s) instead. This option can be useful
if our incomplete parsing of the LaTeX input files fails.
-m mode, --mode mode
Select the METAFONT mode mode. The default is guessed or "localfont" if the guess fails.
file
Main LaTeX input files.
file ...
Other LaTeX input files that are included by the main file.
AUTHOR
Thorsten Ohl <Thorsten.Ohl@Physik.TH-Darmstadt.de>
BUGS
The preparation of ".tfm" files is not foolproof yet, because we can parse TeX files only superficially.
This script has only been tested for recent teTeX distributions of UNIX TeX, though it will probably work with other versions of UNIX TeX.
The author will be grateful for portability suggestions, even concerning Borg operating systems, for the benefit of those users that are
forced to live with DOS or Windows.
FeynMF Version 1.08 2012-01-06 FEYNMF(1)