Tagged Questions
6
votes
1answer
248 views
Peculiar piping grep/head behavior
I'm helping the netadmin here with a perl regex to automate operating on some snapshots from our SAN and our scripts does stuff like this:
varinit1=$(iscsiadm -m session | grep rbmsdata1 | head -n1 | ...