How can I obtain the item number X from a line returned by the command grep?
http://www.experts-exchange.com/OS/Unix/Q_10013723.html
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...
http://www.experts-exchange.com/OS/Unix/Q_10316949.html
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...
http://www.experts-exchange.com/OS/Unix/Q_20253454.html
Zones:
UnixDate Answered: 02/02/2003 Grade: A Views: 0
I would like fetch username from email address(STDIN or file) and put into one variable.
thnx in advance
http://www.experts-exchange.com/OS/Linux/Q_20288303.html
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 ...
http://www.experts-exchange.com/Programming/System/Unix_-_Posix/Q_20405449.html
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...
http://www.experts-exchange.com/Programming/System/Unix_-_Posix/Q_20552536.html
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...
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/Q_20591562.html
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...
http://www.experts-exchange.com/Programming/System/Unix_-_Posix/Q_20658514.html
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!
...
http://www.experts-exchange.com/OS/Linux/Administration/Q_20702146.html
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...
http://www.experts-exchange.com/Programming/Misc/Q_20830769.html