Search Results

Search: Posts Made By: modey3
8,137
Posted By modey3
vgersh99, Thanks it worked! I tried B=...
vgersh99,

Thanks it worked! I tried
B= (echo "1.25+$A"|bc)
Little did I know a $ needed to be added.

modey3
8,137
Posted By modey3
Adding Two Decimals Together and Storing as a Variable
Hello,

I'm writing a shell script which CATs a input file and subsequently runs an executable. Within each do-loop iteration the input file is changed.

Here is where I'm running into...
4,889
Posted By modey3
Never mind, I figured it out... eval $(echo...
Never mind, I figured it out...

eval $(echo '1 F= -.13250138E+03 E0= blah ' | awk '{print "X=" $3}')
4,889
Posted By modey3
Ygor, Thanks the command worked! Your...
Ygor,

Thanks the command worked! Your solution works because fortunately 'F=' precedes '-.13250138E+03'. Is it possible to define '-.13250138E+03' in terms of a variable even if 'F=' didn't...
4,889
Posted By modey3
Using GREP/AWK to extract a number and store it as a variable
Hello,

I have a question regarding the awk command. Here is the line I need to grep:

1 F= -.13250138E+03 E0= -.13249556E+03 d E =-.174650E-01 mag= 35.2157

Instead of displaying the number in...
11,854
Posted By modey3
It worked! Thank you Radar. Now back to Bash...
It worked! Thank you Radar. Now back to Bash scripting.

modey3
11,854
Posted By modey3
Thanks for the help so far. I should have...
Thanks for the help so far. I should have clarified the situation better. The number I need to extract is a variable, which varies from file to file. The output line I gave above was just an example....
11,854
Posted By modey3
Using GREP to extract variable following a string
Hello,

I'm running calculations and I need to extract a specific number from a output file. So far I've only been able to GREP entire lines containing the string: '1 F=' . I would like to go...
3,948
Posted By modey3
Running a Script/Executable From Within a Script
Hello,

I am new to Unix. I am trying to run a shell script (1node.sh) from within a Bash script that I created. I get the following error:

command not foundh: line 30: 1node.sh

I used...
Showing results 1 to 9 of 9

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