Hi everyone,
This is my first time posting to the UNIX form and it might be a strange request, but I believe I have most of the pieces.
Here's the overall goal -- I am trying to find the links in a large web site that are linked to files over 2000k.
I used the command line to find all files on the server that are larger than 2000k by using the following:
And I know how to grep all the files in the web site to find a certain word by using the following:
Since I haven't used awk except for way back in '98, I am at a loss for how I could place these two commands together.
In any type of language that I am familiar with, I would make a function out of the first line.
Then I would create another function to read each line within the text file and place it into a variable.
Then I would grep the web site using the variable.
So, I have the logic, but I do not know the syntax.
Can anyone help me?
Thanx n advance
This is my first time posting to the UNIX form and it might be a strange request, but I believe I have most of the pieces.
Here's the overall goal -- I am trying to find the links in a large web site that are linked to files over 2000k.
I used the command line to find all files on the server that are larger than 2000k by using the following:
Code:
find ./ -size +2000c > files_over_2000_bytes.txt
Code:
grep -nr Something * > Something.txt;
In any type of language that I am familiar with, I would make a function out of the first line.
Then I would create another function to read each line within the text file and place it into a variable.
Then I would grep the web site using the variable.
So, I have the logic, but I do not know the syntax.
Can anyone help me?
Thanx n advance
Comment