Reputation
647
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 21
Newest
 Enthusiast
Impact
~26k people reached

Apr
21
revised Openbox keybindings not taking effect after --reconfigure or restarting X
Ambiguity fixed! was "...not taking effect after --reconfigure or restart". May easily be misread as --restart (OB option), but in the OP it is revealed that he restarted X Window (e. g. ctrl-alt-backspace)
Apr
21
accepted Setting correct permissions automatically for certain file type when file is copied from non-Linux file system
Apr
21
suggested approved edit on Openbox keybindings not taking effect after --reconfigure or restarting X
Apr
21
revised Openbox keybindings not taking effect after --reconfigure or restarting X
wording
Apr
17
comment Store 2^500 in a variable in bash
@StardustOne Not really. You can use arbitrary groups of characters with the two parameters, e. g. try echo "havk vf sha" | tr 'fhaskv' 'sunfxi' :) (this is rot13 for the poor man, with the chars deliberately unsorted to not give away the solution too soon :))
Apr
17
comment Store 2^500 in a variable in bash
@jimmij One thing; going the echo way is much more portable (think commercial *nixes). Plus, you must ensure that your /tmp is writable if you use here strings. Think of emergency consoles with / mounted ro - your here string approach will FAIL.
Apr
17
revised bash: -eq vs. == and `bc` output type
wording
Apr
17
comment bash: -eq vs. == and `bc` output type
Can we agree that the manual is a bit too less clear and verbose on this matter still? ;)
Apr
17
revised bash: -eq vs. == and `bc` output type
this is indeed about test (the functions [[..]] resp. ((..)), so this will be the perfect tag for it)
Apr
17
comment bash: -eq vs. == and `bc` output type
Well, thanks for the explanation, but in fact I didn't "confuse" anything. I simply was unsure, hence I chose to ask. Plus, I wasn't able to determine the bc output type. Whatever, in the bash manual page, there was nothing written explicitly about the == being used for numbers - only for strings.
Apr
17
revised bash: -eq vs. == and `bc` output type
deleted 1 character in body
Apr
17
comment bash: -eq vs. == and `bc` output type
Just never thought of that, thanks for the inspiration. :) I'm a bash old-schooler and still not too familiar with the "modern" ${...#...} syntax using brace substitution.
Apr
17
asked bash: -eq vs. == and `bc` output type
Mar
24
revised Setting correct permissions automatically for certain file type when file is copied from non-Linux file system
edited title
Mar
23
revised Setting correct permissions automatically for certain file type when file is copied from non-Linux file system
had no idea we've got a permissions tag!
Mar
23
comment Setting correct permissions automatically for certain file type when file is copied from non-Linux file system
All in all this is a nice approach, thank you. I think I can inject some more tricks into my script later myself, e. g. checking out the FROM file system whether it is NTFS, e. g. result=$(lsblk -no FSTYPE) and then test the $result value whether it reads "ntfs". Caveat: Some big HDDs might consist of partitions with both ext and NTFS file systems on them, so make sure your arguments for lsblk are partitions, not devices.
Mar
23
comment Setting correct permissions automatically for certain file type when file is copied from non-Linux file system
"since this type of behavior would make a lot of people happy" - You can say that again. It's no real fun always having to remove silly permission flags that do not belong there for audio files (e. g. executable in a standalone way).
Mar
23
comment Setting correct permissions automatically for certain file type when file is copied from non-Linux file system
This is fantastic! First time I've heard of this handy little program. Thank you so much, your answer is about to get my "accepted answer" vote, unless...wait and see.
Mar
23
revised Setting correct permissions automatically for certain file type when file is copied from non-Linux file system
edited title
Mar
23
asked Setting correct permissions automatically for certain file type when file is copied from non-Linux file system