3 ms·
Would you mind telling us what it is you hope to accomplish? There's so much wrong with the paste. For instance: [jbrown@tools1 testdir1]$ echo ${data} tes
by anothergoogler 8y ago
Would you mind telling us what it is you hope to accomplish? There's so much wrong with the paste. For instance:
[jbrown@tools1 testdir1]$ echo ${data}
testfile1 testfile2 testfile3 testfile4 ...
Is ambiguous. Is `data` an array? Is it a string with lots of spaces? Newlines? There's no way to know and I get the sense that we're being nerd sniped.
- ploxiln 8y agoheh definitely nerd sniped ... compelled to answer when this gets up-voted so people don't think it's some special insightful question, rather than like 5 different critical errors all mixing together with strange results
- indigodaddy 8y agoI don't know what nerd sniping is, but I'm pretty sure I wasn't trying to do that, nor trick anyone. I'll try to better explain how I defined the variable when I get to a computer. Essentially I just copy pasted from the filelist.txt output, into data='copy pasted into here, which also appeared to clearly generate newlines'
- ploxiln 8y agoI believe you it wasn't intentional :) explanation: https://www.xkcd.com/356/ https://www.xkcd.com/356/
- indigodaddy 8y agoLol OK fine. :) Look, I'm kind of at the level of the layman trying to decipher a Numberphile video. You guys are trying to distill it down for me, and I'm desperately trying to grasp at it. But hey, at some point I may grab hold. I thought I was serviceable in bash/builtins, then I post this and realize just how much I don't know. But hey that just means there's that much more to know and learn.
- gruez 8y ago>There's no way to know and I get the sense that we're being nerd sniped. I thought I was having a stroke while reading the OP (and some of the top comments) can someone concisely summarize what's happening?