07-25-2007
Thanks, but adding -type f didn't do it, i still see the directory in the output
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I would like to know which files contain a certain string. If I use 'grep "string" *' only the working directory is being searched. I also want to search the subdirectories. When I use 'find . -type f -print |xargs grep "string" > dev/null' I get the message 'xargs: missing quote?'. What's... (11 Replies)
Discussion started by: Anika
11 Replies
2. UNIX for Dummies Questions & Answers
I'm having trouble with the following commands
i. count the number of lines which end in a 4 letter word
grep '{4\}$' bfile <<seems to print out everything
abc abc abcd
joe joe john
bob bill
gregory greg
greg gregory
the grep command prints out the lines with 4 letter words and the... (3 Replies)
Discussion started by: StrengthThaDon
3 Replies
3. UNIX for Dummies Questions & Answers
Hi to everybody!!
I have a (simple) question but i am newbie with unix and so i need a little help...I am writing a bash script file and i want to put inside this:
i have this command " find /usr/bin -name bzip2 -print " that i want to put it in a "if" statement and when it returns true the... (6 Replies)
Discussion started by: orestis7
6 Replies
4. Shell Programming and Scripting
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. Homework & Coursework Questions
Use and complete the template provided. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have to make as home work several commands with gerp find and sed
2. Relevant commands, code, scripts, algorithms:
FIND command
-use command find... (8 Replies)
Discussion started by: ViruS89
8 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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
8. UNIX for Dummies Questions & Answers
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
9. UNIX for Dummies Questions & Answers
Platforms : Solaris 10 and RHEL 5.6
I always get double quotes , single quotes and asteriks mixed up for find, ls and grep commands.
The below commands retrieve the correct results. But , unders stress , I get all these mixed up :mad: .So, i wanted to get a clear picture.
Please check if... (7 Replies)
Discussion started by: John K
7 Replies
10. Shell Programming and Scripting
I have these grep commands and need to put them next each other (in horizontal layout).
cat /tmp/dsmc.out |grep Done
cat /tmp/dsmc.out |grep "Elapsed processing time:"
cat /tmp/dsmc.out |grep "Client date/time:"
cat /tmp/dsmc.out |grep "Total number of bytes transferred:"
so that it... (6 Replies)
Discussion started by: Daniel Gate
6 Replies
LEARN ABOUT REDHAT
chkfontpath
CHKFONTPATH(8) Red Hat, Inc. CHKFONTPATH(8)
NAME
chkfontpath - simple interface for adding, removing, and listing directories in the X font server's path
SYNOPSIS
chkfontpath [-lqfh] [-a name of directory to add] [-r name of directory to remove]
DESCRIPTION
chkfontpath provides a simple method of configuring the directories contained in the X font server's path. As of Red Hat 6.0, all fonts in
X are served via this separate font server process, not through the main X server process. This speeds up font rendering, and also allows
use of font servers which are not running on the local host.
chkfontpath is mainly used by rpm in its %post and %postun sections to add and remove new directories to the server's config file at
installation and de-installation time of packages containing fonts.
-a, --add=name of directory to add
Add a directory to the font path.
-r, --remove=name of directory to remove
Remove a directory from the font path.
-l, --list
List all directories in the font path.
-q, --quiet
Quiet operation; don't display any output to the screen, even when there is an error during operation.
-f, --first
Requires usage of the add command; puts the specified directory first in the font path, rather than last.
-h, --help
Show detailed help on the command line.
When directories are added to the path, some sanity checking is performed to make sure you are not adding a directory without the file
fonts.dir contained in it, which the server needs to be able to render fonts properly. When a path is succesfully added or removed, the
xfs process is restarted if it is currently running.
RETURN CODES
chkfontpath returns 0 on success, or 1 on error.
FILES
/etc/X11/fs/config
Configuration file for the X font server (xfs).
SEE ALSO
xfs(1),fslsfonts(1)
AUTHOR
Written by Preston Brown <pbrown@redhat.com>
REPORTING BUGS
Report bugs to <http://bugzilla.redhat.com>.
COPYRIGHT
Copyright (C) 1999-2001 Red Hat, Inc. All rights reserved.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTIBILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
4th Berkeley Distribution Thu Jan 18 2001 CHKFONTPATH(8)