Search Results

Search: Posts Made By: erenay
26,193
Posted By erenay
Thanks a lot sauron and giannicello. As you can...
Thanks a lot sauron and giannicello. As you can see I'm a newbie.
I tried

#!/bin/sh
FILENAME=$1
while read line; do
if [[ $line = *sometext* ]]; then echo "$line"; fi
done < $FILENAME
...
26,193
Posted By erenay
Hi all, I have a similar problem. My...
Hi all,

I have a similar problem.
My script is like:

#!/bin/sh
FILENAME=$1
while read line do
if [[$line = *sometext*]] then echo $line fi
done < $FILENAME

And I get the error:
...
Showing results 1 to 2 of 2

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