Cursed shell snippet to print a string N amount of times:
```
N=10
test $N -eq 0 || seq $N | xargs printf 'apple'%.0s
```
completely posix compliant :)
Cursed shell snippet to print a string N amount of times:
```
N=10
test $N -eq 0 || seq $N | xargs printf 'apple'%.0s
```
completely posix compliant :)
@lanodan aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
It's really hard to keep track of what is and isn't posix, this has bitten me a bunch of times...
(thanks for letting me know, lol)
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.