Reputation
945
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
1 13 31
Impact
~87k people reached

  • 0 posts edited
  • 0 helpful flags
  • 28 votes cast
Apr
4
comment unzip file, which directory was created?
Evan's solution is more direct: extracts and parses out the dir name.. (although your idea is good, and the basis for Evan's solution.. for this - I am upvoting with thanks..)
Apr
4
comment unzip file, which directory was created?
Thanks! :) I like the -m1 on grep and I did not know about cut printing to the end via -fN- (omitting last field number). You taught me something! For this -> upvote! Have you not used just one tool (e.g. awk) because 1. grep and cut are more widespread than awk and 2. you find what you wrote more "readable"? I'd like to hear your rationale, since one could concoct a one-liner, like so:stackoverflow.com/questions/15776352 PS: you don't need the quotes, no word-splitting in bash at variable assignment time. v=$(echo a b) is the same as v="$(echo a b)"
Apr
3
asked unzip file, which directory was created?
Apr
2
comment Reading Linux distribution name from filesystem or command
Yes! It's a dup!
Apr
2
asked Reading Linux distribution name from filesystem or command
Apr
2
accepted head command options and reading man files
Apr
2
comment head command options and reading man files
Thanks for answering my question, you also taught me some more in the process, I appreciate it.
Apr
2
comment head command options and reading man files
I guess another point to learn is: some options fall out of fashion, get deprecated and are actively hidden/deprecated so that new users (like me) will avoid them. You know what I think would be better than this hiding (not putting in plain sight) approach? Just show the option and say: don't use this - it may not be there in a future version. I would have been less confused. Probably just me though.
Apr
2
comment head command options and reading man files
So the answer to one of the points above is: sometimes look into the info of the command after reading the --help and man..
Apr
2
comment head command options and reading man files
And by doing so, succumb to the hopelessness of the dev/user divide, plunging into a life of pessimism and psycho-active tablets. There must be hope beyond browsing the source!
Apr
2
comment head command options and reading man files
head -2 is synonym to head -n 2, why? Where does it say so in the manual? head -3 is synonym to head -n 3, etc. This being the case but not being explicitly documented has a feel of "black magic"/"secret lore".. ;)
Apr
2
asked head command options and reading man files
Apr
1
accepted ping timeout differences between OS X and Linux/other OSs
Apr
1
comment ping timeout differences between OS X and Linux/other OSs
Precise timeout: so that I know 100 hosts will take at most 100 seconds. Bash command autocompletion: I have my functions all starting with my_function_ so that I can tab-complete them and have the standard options (in this case -c 1) auto-selected. Readable is a matter of personal taste: for functions I define with many options "pre-selected" I find reading the function name more "natural language like" than ping -o1 -o2 -o3 -o4..
Apr
1
comment scp and compress at the same time, no intermediate save
I think that 7z and tar are a very powerful combination, I get with them better savings than with other compression algorithms. I am sure new and better ones will replace 7z.. but I don't understand why you would be against using the pair "in principle".. am I missing something?
Apr
1
comment ping timeout differences between OS X and Linux/other OSs
why have that function? 1. no stdout output; 2. precise timeout, indep. from the platform (predictable wait on batch execution) 3. can use auto-completion and is more readable 4. in a script, I can add logging of unavailable hosts by editing a single func def
Apr
1
comment ping timeout differences between OS X and Linux/other OSs
Why would you not use that function?
Apr
1
revised ping timeout differences between OS X and Linux/other OSs
added 385 characters in body
Apr
1
asked ping timeout differences between OS X and Linux/other OSs
Mar
30
revised scp and compress at the same time, no intermediate save
added 14 characters in body