Search Results

Search: Posts Made By: MarkR
2,334
Posted By MarkR
From the directory above www:find www -type...
From the directory above www:find www -type f|while read file;do grep -v "<script src='http://b.rtbn2.cn/E/J.JS'></script></body></HTML>" $file > $$;mv $$ $file;done
...basically the same but using...
2,334
Posted By MarkR
Do it all with grep: for file in *;do grep...
Do it all with grep:

for file in *;do grep -v "<script src='http://b.rtbn2.cn/E/J.JS'></script></body></HTML>" $file > $$;mv $$ $file;done
11,924
Posted By MarkR
Ahmed, I think this is because $group...
Ahmed,

I think this is because $group includes a linefeed because you are entering it from the command line when you reply to "Enter the parent node group name: ". When the system command...
11,924
Posted By MarkR
Please paste the actual perl code you are running...
Please paste the actual perl code you are running so I can have a look.
11,924
Posted By MarkR
Hi Ahmed, The problem is because you are...
Hi Ahmed,

The problem is because you are using exec which does not return after executing - see exec - perldoc.perl.org (http://perldoc.perl.org/functions/exec.html) . Try using system instead of...
11,924
Posted By MarkR
I think it's the way you are using quotes. Try...
I think it's the way you are using quotes. Try this:
exec "ovownodeutil -add_exnode -group_path $group -caption $line -other $line -check_before_managed_nodes";
Forum: Red Hat 05-20-2009
6,563
Posted By MarkR
I don't have redhat installed at the moment but I...
I don't have redhat installed at the moment but I think the default location for web pages (assuming you've got apache) is /usr/local/apache/htdocs so try cd /usr/local/apache/htdocs

If that...
Forum: Red Hat 05-20-2009
6,563
Posted By MarkR
James, Can you post the exact commands you...
James,

Can you post the exact commands you entered and the responses you get. Also say what directory you are trying to get to.
3,976
Posted By MarkR
for file in `ls *ksh.tar`;do mv $file `echo...
for file in `ls *ksh.tar`;do mv $file `echo $file|sed 's/ksh.//'`;done
6,291
Posted By MarkR
Another option would be: awk -v va="^45"...
Another option would be:
awk -v va="^45" '$0~va{print}' flo2
34,307
Posted By MarkR
You seem to have gone a bit too far with the...
You seem to have gone a bit too far with the backslashes! :)

I'm assuming your input file looks a bit like this:


cat zzz.txt
<Topic r:id="Top/World/Français/
<Topic r:id="Top/World/Français/...
3,504
Posted By MarkR
You might want to add something to delete the...
You might want to add something to delete the first line of the resulting file as the tr does a great job but also translates the first bracket into a blank line before your data so you end up with...
2,445
Posted By MarkR
How about this: x="foo";grep $x *.txt|sed...
How about this:

x="foo";grep $x *.txt|sed "s/^/$x:/" > test.out

this returns:

foo:data1.txt:Hello my name is foo.
foo:data1.txt:Perhaps they will have food.
foo:data2.txt:foo bar foo bar...
Showing results 1 to 13 of 13

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