Search Results

Search: Posts Made By: prodigious8
Forum: Programming 03-15-2016
16,416
Posted By prodigious8
Use #if not defined with OR boolean logic in preprocessor directives
I am currently using Linux CentOS and programming in FORTRAN 90 using Portland 7.1 compiler.

I am able to set in the preprocessor directives a flag called TEST. when I go to use logic in my code i...
5,804
Posted By prodigious8
Arithmetic on a Float in bash
I am using bash
I have a script that takes a number, i.e. 85.152, which is always a non integer and essentially tries to get that number to be a multiple of 10. My code is as follows:
...
2,040
Posted By prodigious8
Thank you guys you are amazing. I went with...
Thank you guys you are amazing. I went with RudiC's suggestion although all of them worked.
2,040
Posted By prodigious8
How to perform multiple operations on a number before storing to a variable?
(I am using bash)
I have a command that will find the line number in a file by searching for a string where it exists.

linenumber=$(grep -n "string" $FILENAME | cut -d : -fi)

This returns the...
2,590
Posted By prodigious8
I think for what I am trying to do it is safer...
I think for what I am trying to do it is safer and simpler to use awk. when trying to implement with sed it appears to be more complicated and error prone especially when there are multiple columns...
2,590
Posted By prodigious8
Using sed to change values after a specific string
Hello I have a script that searches a file for a specific string and then changes the nth column after that string. I have searched online for how to do this with sed but have not seemed to find a...
Showing results 1 to 6 of 6

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