Advertisement

1 - 10 of 260 containing alltags:("grep") (0.001 seconds)
How can I obtain the item number X from a line returned by the command grep?
Zones: UnixDate Answered: 06/10/1997 Grade: A Views: 0
I have a directory with a few thousand files. For this reason I use following command to grep them : ls -1 | xargs grep UPDATE Unfortunately a few of these files have some very long lines and gre...
Zones: UnixDate Answered: 03/27/2000 Grade: A Views: 0
I have a requirement to select a few records from a fixed format text file. For this I  execute a txt file containing the following set of commands : grep '123456' x.txt >> y.txt grep '143241...
Zones: UnixDate Answered: 02/02/2003 Grade: A Views: 0
Tags: grep
I would like fetch username from email address(STDIN or file) and put into one variable. thnx in advance
Zones: LinuxDate Answered: 04/13/2002 Grade: A Views: 0
I can grep for a string inside of files in my current directory (grep "my string" *   OR grep "my string" *.sh), but want to be able to do this recursively through all subdirectories of my current ...
Zones: Unix Systems Programming, SSIDate Answered: 11/25/2002 Grade: A Views: 0
Hi, I have a pretty standard requirement. Basically, i want to grep for a daemon process and if it is not there, do an ftp of all the files in a certain directory onto the same directory on a fa...
Zones: Unix Systems ProgrammingDate Answered: 12/07/2003 Grade: A Views: 0
Hello, I need to extract a date from a CSV file and name the file as that date with a static prefix. i.e. using the data in the file below,  rename csvfile.csv to B24_10-11-01.csv. data in f...
Zones: MS DOSDate Answered: 04/21/2003 Grade: A Views: 0
I have a ksh script, it reads apache logs, and generates a few simple stats.  I want it to run be able to run with [-d {dd/mon./yyyy}] and [-h].  When the -h option is set, it will print the report...
Zones: Unix Systems ProgrammingDate Answered: 07/02/2003 Grade: A Views: 22
They seem to be mutually exclusive.  Running gnu grep  2.4.2 Running it this way....   find . -exec grep -n -s odbc_result {} \;   that gives line number but not filename -l does the opposite! ...
Zones: Linux AdminDate Answered: 08/06/2003 Grade: A Views: 0
How is it that I would grep on the command line that includes a reqex. I tried the following but it did not work: grep "fromhost=(\d.*):" testfile.txt > resultsfile.txt I am using bash. T...
Zones: Programming, Regular ExpressionsDate Answered: 01/30/2004 Grade: A Views: 0