Search Results

Search: Posts Made By: javathecat
4,460
Posted By javathecat
I got the awk code to work too. It's impressively...
I got the awk code to work too. It's impressively faster than calling sed.

This code didn't quite work on my machine:

awk ' BEGIN { fln = 1; dln = 8 }
NR == fln || NR == dln { print }
{...
17,735
Posted By javathecat
:b: That did the job nicely, heres how I applied...
:b: That did the job nicely, heres how I applied it:


case $DATA in
*"0 b (0%)"*) ;;
* )
echo $FILE
echo $DATA ;;
esac


Thanks again
17,735
Posted By javathecat
String comparison in if statement
Hi

Just trying to compare the following variables as a condition in an 'if' statement.


ZERODATA="unidentified 0 b (0%)"
DATA=`sed -n "${dln} p" mpck2.out`

...

if [ "$DATA" !=...
4,460
Posted By javathecat
Excellent! It Works. I Appreciate your help with...
Excellent! It Works. I Appreciate your help with that.

Its very good to see the code work.

I will take a look at implementing the awk solution also if it requires less computation. I did notice...
4,460
Posted By javathecat
sed in while loop producing arithmetic output
Hi all

Just wondering if someone can help me with this. I'm trying to write a script that processes the output of another file and prints only the lines I want from it.

This is only the second...
Showing results 1 to 5 of 5

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