Skip to main content
7 events
when toggle format what by license comment
Apr 27, 2021 at 8:03 history edited Kusalananda CC BY-SA 4.0
added 183 characters in body
Apr 26, 2021 at 7:57 comment added Kusalananda @Gigiux Your attempt failed only because you created list as a string. I have added a bit that uses list as a string, but your initial attempt would have suceeded had you used list=( $( cut -f ... ) ).
Apr 26, 2021 at 7:52 comment added Kusalananda @Gigiux See end of my answer. I added a bit.
Apr 26, 2021 at 7:52 history edited Kusalananda CC BY-SA 4.0
deleted 53 characters in body
Apr 26, 2021 at 7:47 comment added Gigiux Thank you, this works with ( list ) but with the real thing, I get the same kind of error. The p is added only on the last entry so the rest looks like a command: lines=$(cat fileWithNumbers.tsv | cut -f 1); $ printf '%sp\n' "${list[@]}" gives ... 9286 9287 9288p.
Apr 26, 2021 at 7:41 history edited Kusalananda CC BY-SA 4.0
deleted 53 characters in body
Apr 26, 2021 at 7:30 history answered Kusalananda CC BY-SA 4.0