Search Results

Search: Posts Made By: cronjob78
12,469
Posted By cronjob78
I dont want to use the first one because I will...
I dont want to use the first one because I will need to run a command on on thousands of files. The second command didnt work. It didnt like the 'd' at the end of the command.

If you must know its...
12,469
Posted By cronjob78
I know that. I want to say if abcdef is in the...
I know that. I want to say if abcdef is in the line then delete the ENTIRE line.
Anyone know how I can do that?

I need to do a huge number of files so while Im grateful for the first reply I cant...
12,469
Posted By cronjob78
delete line from file if successful partial string found
Id like to delete a line from a file using (preferably a single line unix command) if it contains a certain string pattern.

If line contains "abcdef" then delete that line.
Help greatly...
19,773
Posted By cronjob78
Have a similar problem that I'd HUGELY appreciate...
Have a similar problem that I'd HUGELY appreciate help with.

I've got a trojan that put one very large line of code into hundreds of files on my server. Its full of back slashes, forward slashes...
6,318
Posted By cronjob78
./Example/pnlang/index.html ...
./Example/pnlang/index.html
./Example/pnblocks/index.html
./Example/pnstyle/index.html
./Example/index.html
./legal/pndocs/index.html


this is the result of:
find . -exec grep -q "function...
3,613
Posted By cronjob78
Thanks very much for all the replies. That -i...
Thanks very much for all the replies. That -i instruction is very useful.

My task has grown another leg. This is what I have now

sed -i '/<script>function v470/,/<\/script>/...
3,613
Posted By cronjob78
Is there anyway (perferably in one command line)...
Is there anyway (perferably in one command line) that you can manipulate the file itself rather than outputting to a temporary file and then renaming it??
Showing results 1 to 7 of 7

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