Tuesday, 23 June 2020

Print array elements on separate lines in Bash?

rintf '%s\n' "${my_array[@]}"

from : https://stackoverflow.com/questions/15691942/print-array-elements-on-separate-lines-in-bash

No comments:

Post a Comment

How to check if a file contains a specific string using Bash

 In case if you want to check whether file does not contain a specific string, you can do it as follows. if ! grep -q SomeString "$File...