3 ms·
Feeding the output of a job into a variable is a common enough task. One example I worked on recently was to use the results of one find(1) command as an array
by chongli 11y ago
Feeding the output of a job into a variable is a common enough task. One example I worked on recently was to use the results of one find(1) command as an array of arguments to another. Perhaps this was a very ugly way of comparing two directories, but it worked.
This is why it surprised me when I realized (without having thought about it) that variables can't contain null bytes. It made my quick id3 tag parsing script a bit trickier to write, since I could no longer just use read(1P).