Reputation
794
Top tag
Next privilege 1,000 Rep.
See vote count; VIP usercard
Badges
3 6
Newest
 Commentator
Impact
~6k people reached

  • 0 posts edited
  • 0 helpful flags
  • 11 votes cast
Jan
5
comment iterate over file and send lines as positional parameters to another file
@PM2Ring Right, my bad. For some reason I thought it was any white space. I must have confused it with something else. I usually use read with various separators to code split string function in a shell.
Jan
5
answered iterate over file and send lines as positional parameters to another file
Jan
5
comment Can I make [ $(($1 % $check)) -ne 0 ]; be more performant and not be killed?
@MichaelDurrant No, I meant --check, but I don't think it matters. Pre-decrement is faster in theory since you don't have to remember the previous value. But that's most likely micro-optimization that won't have any real impact.
Jan
5
answered Can I make [ $(($1 % $check)) -ne 0 ]; be more performant and not be killed?
Jan
1
comment bc output binary as nibbles separated by whitespace
Okay, I believe I fixed that with rev.
Jan
1
revised bc output binary as nibbles separated by whitespace
added 13 characters in body
Jan
1
answered bc output binary as nibbles separated by whitespace
Jan
1
awarded  Commentator
Jan
1
comment bc output binary as nibbles separated by whitespace
Does it have to be in bc? I would do something like... echo 'obase=2;598980975283696640' | bc | while read -n4 a; do echo -n "$a ";done;echo
Dec
31
awarded  Critic
Dec
24
answered Bash globs as non-file arguments. Example: apt-get remove pkg-*
Dec
22
revised What's the difference between `git reset file` and `git reset HEAD file`?
added 30 characters in body
Dec
22
answered What's the difference between `git reset file` and `git reset HEAD file`?
Dec
22
comment How is ksh93 so fast?
www2.research.att.com/~astopen/download/ast/ast.html
Dec
22
comment How is ksh93 so fast?
Sadly, no. You can of course download source code from at&t website, but that's about it. The library is called AST and contains allocator, regex engine and many other things. So it's entirely possible that combination of all those things make ksh much faster.
Dec
22
answered How is ksh93 so fast?
Dec
3
awarded  Enthusiast
Dec
2
comment Unable to access a directory despite belonging to a group with write permission
You could also do newgrp music to log in to the new group, but that just spawns the new shell process, the old one is still intact. On the other hand, it's quicker.
Nov
30
answered Debian Segmentation Fault
Nov
29
comment User cannot access a file after setting an ACL
@omgimdrunk you are welcome. I believe you can still accept my answer if you wish: i.stack.imgur.com/QpogP.png