Sponsored Content
Top Forums Shell Programming and Scripting Getting fields from a file having multiple delimiters Post 302993347 by dev.devil.1983 on Thursday 9th of March 2017 04:06:46 AM
Old 03-09-2017
Thanks Don, seems to work.Smilie

If you could please help me with the explanation as well.

Regards,
Dev
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

join on a file with multiple lines, fields

I've looked at the join command which is able to perform what I need on two rows with a common field, however if I have more than two rows I need to join all of them. Thus I have one file with multiple rows to be joined on an index number: 1 randomtext1 2 rtext2 2 rtext3 3 rtext4 3 rtext5... (5 Replies)
Discussion started by: crimper
5 Replies

2. Shell Programming and Scripting

Cutting a file with multiple delimiters into columns

Hi All I have recently had to start using Unix for work and I have hit brick wall with this prob.... I have a file that goes a little something like this.... EUR;EUR;EUR:USD:USD;USD;;;EUR/USD;XAU/AUD;XAU/EUR;XAU/AUD,GBP/BOB,UAD/XAU;;;1.11;2.22;3.33;4.44;5.55;6.66;;; is it possible to... (7 Replies)
Discussion started by: luckycharm
7 Replies

3. Shell Programming and Scripting

AWK with multiple delimiters

I have the following string sample: bla bla bla bla bla I would like to extract the "123" using awk. I thought about awk -F"]" '{ print $1 }' but it doesn't work Any ideas ? (7 Replies)
Discussion started by: gdub
7 Replies

4. Shell Programming and Scripting

Sorting problem: Multiple delimiters, multiple keys

Hello If you wanted to sort a .csv file that was filled with lines like this: <Ticker>,<Date as YYYYMMDD>,<Time as H:M:S>,<Volume>,<Corr> (H : , M, S: ) by date, does anybody know of a better solution than to turn the 3rd and 4th colons of every line into commas, sorting on four keys,... (20 Replies)
Discussion started by: Ryan.
20 Replies

5. Shell Programming and Scripting

Inserting additional comma delimiters in a csv file, after and before certian fields.

Hello I have a csv file which I need to insert addtional commas into. The csv is of the format field1,field2,field3,field4,...etc...,field13,field14 I need to add extra commas in each record so that the final output looks like ... (1 Reply)
Discussion started by: kamal_p_99
1 Replies

6. Shell Programming and Scripting

awk: Print fields between two delimiters on separate lines and send to variables

I have email headers that look like the following. In the end I would like to accomplish sending each email address to its own variable, such as: user1@domain.com='user1@domain.com' user2@domain.com='user2@domain.com' user3@domain.com='user3@domain.com' etc... I know the sed to get rid of... (11 Replies)
Discussion started by: tay9000
11 Replies

7. Shell Programming and Scripting

awk multiple delimiters

Hi Folks, This is the first time I ever encountered this situation My input file is of this kind cat input.txt 1 PAIXAF 0 1 1 -9 0 0 0 1 2 0 2 1 2 1 7 PAIXEM 0 7 1 -9 1 0 2 0 1 2 2 1 0 2 9 PAKZXY 0 2 1 -9 2 0 1 1 1 0 1 2 0 1 Till the sixth column (which is -9), I want my columns to... (4 Replies)
Discussion started by: jacobs.smith
4 Replies

8. UNIX for Dummies Questions & Answers

Cut fields between delimiters

I'm having bother getting both lines contained in a file to output as the same value. A simple example: john:123456:123:456:doe john:123456:123:doe cut -d: -f1,4 input file john:456 john:doe ^ first line should be same as second. trick one for me, i know why it's because of the... (4 Replies)
Discussion started by: landofus
4 Replies

9. Shell Programming and Scripting

Cut counting consecutive delimiters as fields

When cut encounters consecutive delimiters it seems to count each instance as a field, at least with spaces. Is this typical behavior for any delimiter? #:~$ ifconfig eth0 | grep HWaddr eth0 Link encap:Ethernet HWaddr 94:de:80:a7:6d:e1 #:~$ ifconfig eth0 | grep HWaddr | cut -d " " -f... (6 Replies)
Discussion started by: Riker1204
6 Replies

10. Shell Programming and Scripting

Shell Script to Group by Based on Multiple Fields in a file

Hi, I want to know if there is any simple approach to SUM a field based on group by of different fields for e.g. file1.txt contains below data 20160622|XXX1||50.00||50.00|MONEY|Plan1| 20160622|XXX1||100.00||100.00|MONEY|Plan1| 20160623|XXX1||25.00||25.00|MONEY|Plan1|... (3 Replies)
Discussion started by: cnu_theprince
3 Replies
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)
All times are GMT -4. The time now is 09:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy