Search Results

Search: Posts Made By: rawmaterial
3,073
Posted By rawmaterial
just to update everyone I have taken a different...
just to update everyone I have taken a different approach and that is to use the split function:


my $string;

while($string =<INPUT>){
chomp($string);
@temp = split(/:/,...
3,073
Posted By rawmaterial
Thank you everyone for your help. It is now...
Thank you everyone for your help. It is now understood. My new code is as follows below:

I am trying to read a text file, each line starts with an element name, the element name is either the word...
3,073
Posted By rawmaterial
Perl : I \ O
Hello Forum,

first thanks indvance.

I am trying to read a text file then write it to another file. I am getting these errors:

Global symbol "$line" requires explicit package name at...
9,554
Posted By rawmaterial
Sorry one more question! If I wanted to...
Sorry one more question!

If I wanted to check for :

<H1> </H1>

or <H12> </H12>

I've tried these:

grep -l "\<[A-Z]?[0-9]+\>" *.html

Am I going in the right direction?
9,554
Posted By rawmaterial
Cheers!!:b: :b::b::b::b::b::b:
Cheers!!:b:



:b::b::b::b::b::b:
9,554
Posted By rawmaterial
This works, but my understanding is with this...
This works, but my understanding is with this expression:
echo $x | grep "<[A-Z]>"
if [ $? -ge "0" ]
then
echo $x
fi

Should only print the file name...
9,554
Posted By rawmaterial
Thank you again :b:. Same result :( ...
Thank you again :b:. Same result :(

however: grep -l "<[A-Z]>" *.html
works flawlessly :)

Not sure why:
#!/bin/sh

for x in *.html

do
echo $x | grep "<[A-Z]>"
...
9,554
Posted By rawmaterial
Hello Shahul, Thank you for your response...
Hello Shahul,

Thank you for your response and help.

With the edited changes it does not work.

Lets say I have a directory of:

uppercase.sh
test_0.html --- File has <P> capital tag...
9,554
Posted By rawmaterial
GREP a directory to check for uppercase
Hello All,


I am trying to write a script to search in my current directory to look for all files that end with HTML and look for any HTML tags that are in upper case. for example if I were to...
Showing results 1 to 9 of 9

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