Simple "CUT" Query
Hello All,
I have a simple Cut query. I want to extract 17195 from the following and store it in a variable. Quote:
|
If you have this text in a variable, and are using bash or a similar shell, you can do it without needing to use cut or sed - this will be more efficient as spawning a new process is much more expensive than manipulating strings inside the shell itself.
Code:
s="ABCD PQRS LMNO XYZW (2.3.17195)" Code:
I have: 17195 |
This was what I was looking for:
Quote:
|
..but matthewg42's is faster and simpler code.
|
All times are GMT -5. The time now is 07:47 PM. |