Sponsored Content
Full Discussion: find & grep
Top Forums UNIX for Dummies Questions & Answers find & grep Post 989 by PxT on Wednesday 31st of January 2001 12:33:39 PM
Old 01-31-2001
However, this will only find you the filenames that contain the string. It will not search for the string <I>within</I> the file, which is what the original poster was asking about.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

help with find & grep commands

Folks; First about find: when i run this: find . -name '*log*' -mtime +10 -print | sed 's+^\./++;s+/.*++' | sort -u i got list of log files but also get a directories (although directory names doesn't have "log" in it). How can i exclude the directory from the output of this find command? ... (2 Replies)
Discussion started by: moe2266
2 Replies

2. Shell Programming and Scripting

Find & Replace string in multiple files & folders using perl

find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g' this is simple logic to find and replace in multiple files & folders Hope this helps. Thanks Zaheer (0 Replies)
Discussion started by: Zaheer.mic
0 Replies

3. UNIX for Dummies Questions & Answers

Difference between grep, egrep & grep -i

Hi All, Please i need to know the difference between grep, egrep & grep -i when used to serach through a file. My platform is SunOS 5.9 & i'm using the korn shell. Regards, - divroro12 - (2 Replies)
Discussion started by: divroro12
2 Replies

4. Shell Programming and Scripting

Find a string using grep & print the line above or below that.

Hi All, Please tell me how can I Find a string using grep & print the line above or below that in solaris? Please share as I am unable to use grep -A or grep -B as it is not working on Solaris. (10 Replies)
Discussion started by: Zaib
10 Replies

5. Shell Programming and Scripting

How to use grep & find command to find references to a particular file

Hi all , I'm new to unix I have a checked project , there exists a file called xxx.config . now my task is to find all the files in the checked out project which references to this xxx.config file. how do i use grep or find command . (2 Replies)
Discussion started by: Gangam
2 Replies

6. Shell Programming and Scripting

Using Grep & find & while read line in a script

Hello people! I would like to create one script following this stage I have one directory with 100 files File001 File002 ... File100 (This is the format of content of the 100 files) 2012/03/10 12:56:50:221875936 1292800448912 12345 0x00 0x04 0 then I have one... (0 Replies)
Discussion started by: Abv_mx81
0 Replies

7. UNIX for Dummies Questions & Answers

GREP Find & Replace <p class>

I am making an eBook. I am editing the html in BBedit. I need to replace all <p class="s5"> with just a <p>. How do I write this for GREP? Thank you, Abby (5 Replies)
Discussion started by: cuddlykitty
5 Replies

8. Shell Programming and Scripting

How do i find "&variable[0]" using grep -r?

Guys, i've got hundreds of C programs in my ~/devel/ directory and sub-directories. is there a way i can use grep -r followed by some zsh, sh, bash, to find some code that starts with "&foo" or something similar? thanks in advance! (9 Replies)
Discussion started by: Gary Kline
9 Replies

9. SCO

Grep to ignore suffix & find end of line

In COBOL, a hyphen can be used in a field name and in a specific program some field names would be identical to others except a suffix was added--sometimes a suffix to a suffix was used. For example, assume I am looking for AAA, AAA-BBB, and AAA-BBB-CCC and don't want to look at AAA-BBB-CCC... (7 Replies)
Discussion started by: wbport
7 Replies
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)
All times are GMT -4. The time now is 06:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy