Search Results

Search: Posts Made By: ah7391
5,297
Posted By ah7391
I'm guessing the field delimiter would be the...
I'm guessing the field delimiter would be the space? But how would I translate that into code? I'm not entirely sure how to use awk or cut commands.
5,297
Posted By ah7391
Thanks! How about if I had this: "real...
Thanks!

How about if I had this:
"real 449m8.133s"

And I wanted to substring it to only make it:
"449m8.133s"

Thanks again!
5,297
Posted By ah7391
Thanks! Also would you happen to know to just...
Thanks! Also would you happen to know to just make it:
"neo_opls01_"

basically truncate the number at the end....

Thanks again!!
5,297
Posted By ah7391
substring without using expr command
Hi guys,

For some reason the terminal on my mac does not let me run string manipulations commands using the expr command. I'm not sure how to fix this so I'm requesting a "work-around" to using...
4,271
Posted By ah7391
Thanks so much pusedocoder! Works like a charm....
Thanks so much pusedocoder! Works like a charm. How do I give you a "thanks"
so noob here!
4,271
Posted By ah7391
Thanks everyone! I ended up using the perl...
Thanks everyone! I ended up using the perl solution!

However I have one more question! Sorry...

I have one string that has two numbers i want to isolate SEPARATELY:

"Global minimum E = ...
4,271
Posted By ah7391
Extracting numbers from a String
Hi all,

I'm a new programmer to shell script... and I have no idea how to use substring.

I want to extract the numbers from the following string and place it into a variable:
"170 unique...
Showing results 1 to 7 of 7

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