03-06-2007
Hope u can use find with Xargs .. Will be the simple ways !!!!!!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am new to Unix world. Is there any command which can directly return the second occurance of a particular string in a file? Basically, I want to read the contents of the file from the second occurance of a particualr string. Can be implemented using a loop, but am just wondering if there... (5 Replies)
Discussion started by: saurabhsinha23
5 Replies
2. Shell Programming and Scripting
Hi
I have requirement to search string starting with specific characters and print whole matching word in that string.
example
mystr="ATTRIBUTE NAME="Event Name" VALUE="Execute""
I want to search by passing "NAME=" and result should be NAME="Event Name".
i am using below command but... (3 Replies)
Discussion started by: tmalik79
3 Replies
3. Shell Programming and Scripting
Hi Forum,
I am using the below command to find files older than x days in a directory excluding subdirectories. From the previous forums I got to know that prune command helps us not to descend in subdirectories. Though I am using it here, not getting the desired result.
cd $dir... (8 Replies)
Discussion started by: jhilmil
8 Replies
4. UNIX for Dummies Questions & Answers
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
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
Hi Don, this is not homework question. I work for a Credit card company and my development goal this year is to learn Unix. I would love if others can help me get started, thanks.
Hi everyone
I am new to Unix and need help writing a script that can ask user for an input, then search that input... (2 Replies)
Discussion started by: 12ic11
2 Replies
7. Shell Programming and Scripting
Hello,
one step in a shell script i am writing, involves Grep command to search a regular expression in a line an only print the string after the match
an example line is below
/logs/GRAS/LGT/applogs/lgt-2016-08-24/2016-08-24.8.log.zip:2016-08-24 19:12:48,602 ERROR... (9 Replies)
Discussion started by: Ramneekgupta91
9 Replies
8. Shell Programming and Scripting
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
9. UNIX for Beginners Questions & Answers
Good Evening Folks -
I have a need to search a specific directory and ALL sub-directories for the following string:
Data Load UpdatedIf this string is found, I need to print content from the line directory above it between symbols, as well as the file name where it is found.
Here is a... (1 Reply)
Discussion started by: SIMMS7400
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I hope somebody would be able to help me.
I would need to search a string coming from a file, example file.txt:
dog
cat
goat
horse
fish
For every string, I would need to know if there are any files inside a directory(recursively) that contains the string regardless of case.... (9 Replies)
Discussion started by: kokoro
9 Replies
LEARN ABOUT SUSE
v4l-conf
v4l-conf(1) General Commands Manual v4l-conf(1)
NAME
v4l-conf - configure a video4linux driver
SYNOPSIS
v4l-conf [ options ]
DESCRIPTION
v4l-conf is a small helper tool. It figures out the video mode and framebuffer base address of the graphics board and configures a
video4linux driver like bttv. This is needed for drivers which can DMA the video over PCI directly into the video memory.
Usually it is not required to use v4l-conf manually, xawtv(1) and fbtv(1) run it automatically at startup. It might be useful for trouble-
shooting. v4l-conf must be installed suid-root.
v4l-conf knows three ways to get the informations:
* Query the X-Server using the XF86 DGA extension. This is the default if the DISPLAY environment variable is set.
* Query the framebuffer driver. This is the default if DISPLAY is not set.
* Query the console driver. This is used on mklinux only.
OPTIONS
-h Print a short description of all command line options.
-q Be quiet.
-d dpy
Use the X11 display dpy to get the parameters.
-f Use the framebuffer driver to get the parameters.
-c device
Set the video4linux device.
-b n
enforce n bpp color depth. Works for switching between 15/16 and 24/32 bpp.
-s n
Shift the video display by n bytes.
-a adr
Set framebuffer address to adr. The value should be specified in hex. This option is allowed for root only. You can't overwrite the
autodetected value, this switch is only useful if autodetect doesn't work because the X-Server lacks DGA support. You can put this
into /etc/conf.modules, as "post-install bttv ..." for example.
-p pitch
Set framebuffer pitch to pitch bytes. The value should be specified in decimal. Allowed for root only. (Currently it is a distro-spe-
cific option added by Fedora).
BUGS
Hope I haven't any security flaws in there. If you find one, drop me a note. Mails with patches are preferred :-)
SEE ALSO
xawtv(1), fbtv(1)
AUTHOR
Gerd Knorr <kraxel@goldbach.in-berlin.de>
COPYRIGHT
Copyright (C) 1997-99 Gerd Knorr <kraxel@goldbach.in-berlin.de>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
(c) 1997-99 Gerd Knorr v4l-conf(1)