Skip to content
Advertisement

Tag: bash

splitting the file based on repeatation

experts i have a file as below where first column is repeated 0.0,5.0,10.Now i want to split the third column at repeatation of the first column row and want to arrange the data side by side as below: so that my final file will be so that my final file will be Answer Using GNU awk: Process each line and

Bash script return to menu if status code inside of a while loop [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I’m doing a bash script to check cryptocurrency prices, and it updates in a while loop like this: Crypto prices real time updating While loop

Name check match pattern

I need help as to why code B is producing a different result The code below (CODE A) produces the correct output (match) However, the below (CODE B) produces a wrong output (no match) Answer To check a regex in an if-statement you’ll need to use =~ instead off ==; Both will match as expected. Try it online!

Advertisement