I have this file and i want to only get the value of testme= So that i can do another action. But this throws lots of lines and actually cant yet make it work.
1. test.sh
#!/bin/bash
for i in $(cat /var/tmp/test.ini); do
# just one output i need: value1
grep testme= $i
done
2. /var/tmp/test.ini
; comments
testme=value1
; comments
testtwo=value2
How about
or alternatively just using bash