It turns out the the recent question regarding the misuse of rm -rf in Ansible was actually just a hoax in some kind of viral marketing effort. It become quite famous on various media and gathered a large number of views.
Since I don't think we should allow ServerFault to be abused in such way...
This is command: pdc status -a 2>&1 | grep 'okay' It gives the following output
[okay ]: you are currently listening: 33
[okay ]: you are currently listening: 22
[okay ]: you are currently listening: 11
I have written this command in shell scrip file. But I want to store the outpu...
Say I have this file:
hello
world
hello world
This program
#!/bin/bash
for i in $(cat $1); do
echo "tester: $i"
done
outputs
tester: hello
tester: world
tester: hello
tester: world
I'd like to have the for iterate over each line individually ignoring whitespaces though, i.e. the las...