Search Results

Search: Posts Made By: Rally_Point
12,227
Posted By Rally_Point
Simple Cut Question
I've got a file that contains a large list of links in this type of style:

'home_dir\2009\09\01\file.html'


I'd like to cut off all of the characters left of 'file.html'. I tried:

cat...
17,809
Posted By Rally_Point
Awk scares me. It looks like C code. :) But...
Awk scares me. It looks like C code. :) But that looks good, I'll give it a try. Thanks!
17,809
Posted By Rally_Point
Grepping Multiple Strings on the Same Line 'Or'
I've got this command that I've been using to find strings on the same line, say I'm doing a search for name:

find . -name "*" | xargs grep -i "Doe" | grep -i "John" > output.txt

This gives...
3,300
Posted By Rally_Point
Ah, so a grep -i would ignore case? Cool, what...
Ah, so a grep -i would ignore case? Cool, what would the -e do? Stupid question I know....
3,300
Posted By Rally_Point
Need to Write Shell Script based off of this shell command
I'm trying to read a bunch of log files and output the lines that contain particular strings.

To accomplish this, I've been running the following from the command line:

find . -name "*" |...
37,145
Posted By Rally_Point
Yeah I figured that out about five minutes after...
Yeah I figured that out about five minutes after I posted. Thanks for replying!
37,145
Posted By Rally_Point
Grepping for two strings that MUST exist on the same line
Trying to find a way to grep for two names on a line. Both names must appear on the same line so '|' / OR is out.

So far, I'm just messing around and I've got

find . -name "*" | xargs grep...
1,897
Posted By Rally_Point
Finding names in multiple files - second attempt
I couldn't find the original thread that I created and since I didn't get a definitive answer, I figured I'd try again. Maybe this time I can describe what I want a little better.


I've got two...
2,277
Posted By Rally_Point
Thanks, hey! I've been to Orem, Utah. There is...
Thanks, hey! I've been to Orem, Utah. There is a Thai restaurant there that is absolutely great!

Anyway, back to my question. I need a script that can find names in multiple files but I don't...
2,277
Posted By Rally_Point
Finding Names in multiple files
What's the best way to see if a common name exists in two separate files?
4,563
Posted By Rally_Point
Thank you very much.
Thank you very much.
4,563
Posted By Rally_Point
Help using find/grep
I'm at /dir1

ls

dir2 dir3 dir4 dir5

In dir2-5 is at least one file.

I want to do a 'grep string' that traverses dir2 - dir5 and finds the string and prints out the file and directory name...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 09:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy