Operating on a directory and its subdirectories, recursively.
1
vote
2answers
104 views
find “an expression” on each file of a directory recursively
One of my website on my webserver has suffered an attack : code injection.
Here is the malicious code :
<script type=\"text/javascript\" language=\"javascript\">
(function () {
var t ...
1
vote
5answers
205 views
Run a command on all the files in a directory tree and put the output into a variable
I want to run this bash command :
#!/bin/bash
rep="*"
for f in `ls -R`$rep; do
d='git log '$f'| wc -l'
c=$d
echo $c
done
how to excute a command git log myFile | wc -l from bash ?
ps : this ...
1
vote
1answer
343 views
How do I create a local copy of a complete website section from OSX using curl?
I'm trying to download Mathematics of the Discrete Fourier Transform
so that I can read through it off-line on my iPad (which doesn't have an Internet connection)
I have used wget in Linux. It seems ...
1
vote
1answer
45 views
wget recursive with files without extension
I'm not very good with Linux so I have maybe a basic question. I've search around for the "how to" and I couldn't find anything.
I'm trying to get a site with wget. The problem is that it:
Have ...
1
vote
2answers
982 views
How to grep a text recursively on BusyBox 1.0?
How can I find a file containing a certain string on a BusyBox 1.0, if grep -r does not work?
1
vote
2answers
648 views
routing wget --recursive to stdout (as in -O -) rather than a file
I want to "scan" a website content, recursively, and pipe it to another program.
When I run:
wget -r -O - $SITE
I get
WARNING: combining -O with -r or -p will mean that all downloaded content
...
1
vote
0answers
353 views
Move files to specific directories [closed]
This question is the same as http://askubuntu.com/questions/47155/reorder-files-inside-folder:
I have about 30K songs in mp3. I already organized/tagged them with Musicbrainz Picard. But Picard made ...
0
votes
3answers
71 views
Find executable files recursively
I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.
ls -l `find ...
0
votes
2answers
1k views
How to search all subdirectories and their subdirectories for the occurence of a word using grep? [duplicate]
Possible Duplicate:
Searching for string in files
Suppose I have a directory called Home and it is my current directory.
And in this home directory I have many other directories
...
0
votes
1answer
163 views
PHP file recursive change array key on find [closed]
I used PHP array
$lang['module']['1'] = 'Title';
$lang['module']['2'] = 'Title2';
$lang['value'] = 'text123';
how i can use replace in terminal Key Value to CASE UPPER ?
$lang['VALUE']
...
0
votes
2answers
371 views
Sed find/delete for a string with multiple special characters recursively
I'm having quite a bit of difficulty with a complex string. A friend's site was hacked and has since been locked down but I'm helping to clean up the mess leftover and what I need to do is the ...