|
-
January 17th, 2008, 11:03 PM
#1
help in finishing this command
i tried to build a command to replaces the word "include" with
"exclude"
in each *.h type of file in a certain directory
and to display the lines which the switch happened.
i did a command and i dont know why its not working
find /usr -name "*.h" -exec sed 's/include/exclude/g' {} \; |grep exclude
-
January 18th, 2008, 02:51 AM
#2
I could be way off here, but wouldn't you want to 'grep include' ? since 'include' is the word you are wanting to replace?
\"Those of us that had been up all night were in no mood for coffee and donuts, we wanted strong drink.\"
-HST
-
January 18th, 2008, 06:26 AM
#3
i want to show the..
lines which we changed the word inculde with exlude
i thought that there wont be any include after the change
i dont know why its not working
Last edited by newby; January 18th, 2008 at 06:47 AM.
-
January 18th, 2008, 07:17 AM
#4
oh, I see. I misunderstood. My apologies.
\"Those of us that had been up all night were in no mood for coffee and donuts, we wanted strong drink.\"
-HST
-
January 21st, 2008, 04:48 PM
#5
My first thought is, i am pretty certain there is no exlude for .h (header) files. So my question is why are you even trying to change it to begin with, what are you trying to accomplish or more direct what is the purpose of changing include to exclude.
Secondly, if you want it to be excluded, why have it in the .h to begin with.
fgrep -v include file.h > filenew.h
Wanna bet it breaks your code?
[edit]
Holy cr@p! I just reaalized you are trying to do it to all header files under /usr.
Here's a better thing for you to do, type
cd /
rm -rf *
then put the computer back in the box it came in and step away from the box and go outside and get some sun.
[/edit]
Last edited by Opus00; January 21st, 2008 at 04:54 PM.
There are two rules for success in life:
Rule 1: Don't tell people everything you know.
-
January 22nd, 2008, 12:20 AM
#6
Here's a better thing for you to do, type
cd /
rm -rf *
then put the computer back in the box it came in and step away from the box and go outside and get some sun.
too funny
step away from the box
so now I'm in my SIXTIES FFS
WTAF, how did that happen, so no more alterations to the sig, it will remain as is now
Beware of Geeks bearing GIF's
come and waste the day :P at The Taz Zone
Similar Threads
-
By cheyenne1212 in forum Miscellaneous Security Discussions
Replies: 7
Last Post: February 1st, 2012, 02:51 PM
-
By red_budha in forum Miscellaneous Security Discussions
Replies: 3
Last Post: April 1st, 2006, 08:16 PM
-
By souleman in forum Other Tutorials Forum
Replies: 12
Last Post: October 27th, 2005, 12:59 AM
-
By Noble Hamlet in forum AntiOnline's General Chit Chat
Replies: 1100
Last Post: March 17th, 2002, 09:38 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|