Dear All,
I have a file with the syntax below (composed of several <log ..... </log> stanzas)
I need to search this file for a number e.g. 2348022225919, and if it is found in a stanza, copy the whole stanza/section (<log .... </log>) to another output file.
The numbers to search for are... (0 Replies)
Hi Guys,
I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same.
can anyone of you please let me know how to go about it ? (8 Replies)
Hi,
I'm trying to search a text file for a string: "energy(sigma->0)=". To do so, I executed the grep command, which returned many matches, for example:
energy without entropy = -112.16486170 energy(sigma->0) = -112.16520778
energy without entropy = -112.16488936 ... (5 Replies)
I have a file with
<suit:run date="Trump Tue 06/19/2012 11:41 AM EDT" machine="garg-ln" build="19921" level="beta" release="6.1.5" os="Linux">
Need to find word "build" then
extract build number, which is 19921 also
release number, which is 6.1.5 then
concatenate them to one variable as... (6 Replies)
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Need Assistance in shell programming... I have a huge file which has multiple stations and i wanted to search particular station and extract few lines from it and the rest is not needed
Bold letters are the stations . The whole file has multiple stations .
Below example i wanted to search... (4 Replies)
Hi Team
I have an huge xml where i need to search for a ceratin numbers. For example
2014-05-06 15:15:41,498 INFO WebContainer : 10 CommonServicesLogs - CleansingTriggerService.invokeCleansingService Entered PUBSUB NOTIFY MESSAGE () -
<?xml version="1.0" encoding="UTF-8"... (5 Replies)
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
Hi,
I have a working script.
It does what I am intending it to but a bit confused whether the sed part is supposed to be working or not. Further down is the script with the sed part that should have been working but not and the grep -v part which is the workaround that I am using at the... (10 Replies)
Discussion started by: newbie_01
10 Replies
LEARN ABOUT CENTOS
kpsewhich
KPSEWHICH(1) General Commands Manual KPSEWHICH(1)NAME
kpsewhich - standalone path lookup and and expansion for kpathsea
SYNOPSIS
kpsewhich [options] [filenames]
DESCRIPTION
This manual page is not meant to be exhaustive. The complete documentation for this version of TeX can be found in the info file or manual
Kpathsea: A library for path searching.
kpsewhich is used as a standalone front-end of the kpathsea library that can be used to examine variables and find files. When the -format
option is not given, the search path used when looking for a file is inferred from the name given, by looking for a known extension. If no
known extension is found, the search path for TeX source files is used.
OPTIONS
kpsewhich accepts the following options:
-debug num
Set debugging flags.
-D num Use a base resolution of num; the default, set by the installer, is typically 600.
-dpi num
As -D.
-engine string
Set $engine in the environment, which is used in some search paths.
-expand-braces string
Print variable and brace expansion of string.
-expand-path string
Print complete path expansion of string.
-expand-var string
Print variable expansion of string.
-format name
Use file type name. See the info manual for a list of valid names, or use the -help option to print the list.
-help Print help message and exit.
-interactive
Ask for additional filenames to look up.
-mktex fmt
enable mktexfmt generation. (fmt=pk/mf/tex/tfm)
-mode string
Set device name for $MAKETEX_MODE to string; no default.
-must-exist
Search the disk as well as ls-R if necessary.
-no-mktex fmt
disable mktexfmt generation. (fmt=pk/mf/tex/tfm)
-path string
Search in the path string.
-progname string
Set program name to string.
-show-path name
Output search path for file type name. See the info manual for a list of valid names, or use the -help option to print the list.
-var-value variable
Print the expansion of variable.
-version
Print version information and exit.
SEE ALSO mktexlsr(1), mktexmf(1), mktexpk(1), mktextfm(1).
Kpathsea 6.1.0 1 March 2011 KPSEWHICH(1)