Sponsored Content
Top Forums Shell Programming and Scripting UNIX Scripting help to input string and search a file to find Post 302951698 by bakunin on Sunday 9th of August 2015 08:27:58 PM
Old 08-09-2015
Quote:
Originally Posted by 12ic11
my development goal this year is to learn Unix. I would love if others can help me get started, thanks.
I suggest you get a book about shell programming (my suggestion, as always, is Barry Rosenbergs "Hands-On KornShell93 Programming"). It will not work to try and teach you this over the internet because this is beyond the scope of this forum.

For the same reason i think the solution to your mentioned problem will in no way help you. If you want to learn shell scripting you should do it yourself (otherwise there will be no learning effect) and if you just need examples for scripting: the internet is full of them and you surely can google yourself, no?

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix find command to print directory and search string

Hi i need to print pathname in which the string present using 'find' command sample output like this Pathname String to be searched ---------- -------------------- /usr/test/myfile get /opt/test/somefile get Thanks in... (4 Replies)
Discussion started by: princein
4 Replies

2. UNIX for Dummies Questions & Answers

Loop till you find a string in a fine <-- Need Help New to Unix Scripting

Guys - I am new to Unix scripting and am in need for a script that does the following. I have bits and pieces created and tested but i am just having a little difficult time getting it all together. - Loop through till it finds a string in a specific file. Any help is greatly appreciated. ... (1 Reply)
Discussion started by: mrehman
1 Replies

3. UNIX for Dummies Questions & Answers

Unix Shell Scripting -- update employees not present in input file

ALL, My shell script takes a employee file as input. I have to identify the list of employees not in the input file and update their status in the database. Approach I followed: by traversing through the input file add all the emplid's to a variable. update the status of employees not in... (2 Replies)
Discussion started by: sailussr
2 Replies

4. Shell Programming and Scripting

Search and find the string and output to a new file.

Hi I want to search the following in the entire file and put them in a diff file. file 1 contains : Non error probabilities are not decreasing in curve 1GEORGE_SGD_SUB Mid Point RESCAP_SGD_SNU curve have errors Non default probabilities are not decreasing in curve ABF_JPY_SUB Mid Point... (3 Replies)
Discussion started by: szchmaltz
3 Replies

5. Shell Programming and Scripting

generate tabular output from an input text file in unix shell scripting

Hi, I have the output (as below) which i want it to be in a table. For e.g. space utilization in PSE on path /logs is 0% space utilization in PSE on path /logs/tuxedo/tuxlsp is 16% space utilization in PSE on path /ldvarlsp/lsp/log is 37% space utilization in PSE on path /home is 6%... (7 Replies)
Discussion started by: pkbond
7 Replies

6. Shell Programming and Scripting

How to search and append words in the same file using unix scripting file operations

Hi , I have a file myhost.txt which contains below, 127.0.0.1 localhost 1.17.1.5 atrpx958 11.17.10.11 atrpx958zone nsybhost I need to append words only after "atrpx958" like 'myhost' and 'libhost' and not after atrpx958zone. How to search the word atrpx958(which is hostname) only,... (5 Replies)
Discussion started by: gsreeni
5 Replies

7. UNIX for Dummies Questions & Answers

UNIX Scripting help to input string and search a file to find

Hi everyone, I am new to Unix and need help writing a script that can ask user for an input, then search that input within a file I know will have to use the read and grep commands, anyone can give me somewhere to start would help Task: Write a script to display... (1 Reply)
Discussion started by: 12ic11
1 Replies

8. Shell Programming and Scripting

UNIX Scripting help to input string and search a file to find

Hi everyone, I am new to Unix and need help writing a script that can ask user for an input, then search that input within a file I know will have to use the read and grep commands, anyone can give me somewhere to start would help Task: Write a script to display which volume pool a given... (1 Reply)
Discussion started by: 12ic11
1 Replies

9. Shell Programming and Scripting

How can I use find command to search string/pattern in a file recursively?

Hi, How can I use find command to search string/pattern in a file recursively? What I tried: find . -type f -exec cat {} | grep "make" \; Output: grep: find: ;: No such file or directory missing argument to `-exec' And this: find . -type f -exec cat {} \; -exec grep "make" {} \;... (12 Replies)
Discussion started by: cola
12 Replies

10. UNIX for Beginners Questions & Answers

Search partial string in a file and replace the string - UNIX

I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this. string(Scenario 1)- user::r--,user::ourfrd:r-- String(Scenario 2)- user::r-- File **** # file: /local/Desktop/myfile # owner: me # group:... (6 Replies)
Discussion started by: sarathy_a35
6 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 08:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy