The find command will locate a file name with the extension of txt once per round and find the word "text" in the content of the file or the find command will locate all the file names with the extension of txt and then find the word "text" in the content of the files?
Also what does {}\ represent for grep command?
Moderator's Comments:
Please do wrap your samples in CODE TAGS as per forum rules.
Last edited by RavinderSingh13; 01-16-2020 at 12:06 AM..
Hi,
I need to extract information from a 4 GB file based on the following conditions:
1) Check for the presence of a set of account numbers
Each account number is present along with other information within
a PAGESTART and PAGEEND.
The file looks like this:
PAGESTART
ACCOUNT NO 123... (6 Replies)
I wanna grep for a pattern logs 1 2 & 3 within a folder containing 100 logs
grep "test" /folder/log1 /folder/log2 /folder/log3
The above command will work fine
but is there any command like
grep "test" /folder/log1, log2, log3 or something similar (4 Replies)
Hi All,
Can i use find command to know given date files? If yes, then please let me know the syntax for the same.
Thanks in advance for your postive responses
Regards,
Bachegowda (3 Replies)
I'm learning UNIX on my mac (BSD), using a manual. I'm trying to figure out the grep command, and am getting something wrong. I've opened one of my files in NeoOffice and am looking for a string, the phrase 'I am writing.' I've been to some sites to get the proper syntax, and from what I can see... (5 Replies)
Hello,
I'm working on unix with grep (GNU grep) 2.5.1. I'm going through some of the newer regex syntax using Regular Expression Reference - Advanced Syntax a guide.
ls -aLl /bin | grep "\(x\)"
Which works, just highlights 'x' where ever, when ever.
I'm trying to to get (?:) to work but... (4 Replies)
Alrighty, I'm trying to get a perl script going to search through a bunch of files for me and compile it to a single location. I am currently having troubles on just getting the grep to work.
Here is what I currently have:
#!/usr/bin/perl
open (LOG, "errors.txt") or die
("Unable to open... (2 Replies)
i'm trying to find out how to find in my directory and subdirectories a certain file. once i find that file, i need to select that folder and copy it the location or output it to a new text file.
i know how to find the file by using
find . -name \*.pl | sort -n
but idk how to select... (9 Replies)
Hi Folks,
I am trying to dig through about 100 directories that have 1 or 2 .jpg images stored in each. I want to copy the .jpg to another file in the root directory. Really my ultimate goal is not to have to dig down into each directory to copy the images individually. I thought I could use a... (2 Replies)
My current code is:
user@ubuntu:~/Desktop$ grep -e "\(packaged by\)\|\(employee\)\|\(file name\)\|\(Total Data (MB) Read\)\|\(Begin Time\)" log.txt
packaged by = Ron Mexico
employee = Michael Vick
file name = Mike_Vick_2011.bat
Total Data (MB) Read: 11.82
Begin Time: 6/13/2011... (8 Replies)
Dear Team
/app/Appln/logs/
echo Session used server are 'grep -i pid|grep -i session | cut -d'.' -f1 | awk '{print $9}' | sort | uniq'
Output -
lxserver01
lxserver02
lxserver03
When I grep session pid in logs server details I can see above distinct server details but I... (6 Replies)
Discussion started by: skp
6 Replies
LEARN ABOUT DEBIAN
dwww-find
DWWW-FIND(8) Debian DWWW-FIND(8)NAME
dwww-find - find documentation related to a search argument
SYNOPSIS
dwww-find [--program|--menu|--documentation|--docfile|--doc-base-list] [--skip=number] argument [...]
DESCRIPTION
dwww-find is part of the dwww package, which provides access to on-line documentation on a Debian system via WWW.
dwww-find searches for a documentation related to a given program, for entries from Debian Documentation Menu, or at least for documents
registered with doc-base. It returns a HTML-formatted document with search results.
OPTIONS --program
Search for documentation (man pages, info files, etc.) related to program specified by argument.
--menu Search for entries in Debian Documentation Menu pages generated by dwww-build-menu(8).
--documentation
Search in documentation files registered with doc-base. It uses search++(1) for searching.
--docfile
Search for documentation for package, which contains the file specified by the argument. The file must be located in or below a
directory that has been allowed by the system administrator; see dwww(7) for more info.
--doc-base-list
Show list of registerered doc-base files for given argument, which should be specified as format/document-id, where document-id is
an identificator of registered doc-base document, and format is a name of format (e.g. text or pdf) registered by the document, for
which the list list is to be generated.
--skip=number
Works only with --documentation. Skip number of search results.
When no options are specified, --program is assumed.
FILES
/etc/dwww/dwww.conf
Configuration file for dwww.
SEE ALSO dwww(7), dwww-quickfind(8), dwww-build-menu(8), dwww-index++(8), search++(1), Debian doc-base Manual in
/usr/share/doc/doc-base/doc-base.html/index.html.
AUTHORS
Lars Wirzenius. Robert Luberda.
See dwww(7) for copyrights and stuff.
dwww 1.11.4 January 15th, 2011 DWWW-FIND(8)