Reputation
22,237
Next tag badge:
332/400 score
95/80 answers
Badges
2 28 79
Newest
 Yearling
Impact
~1.9m people reached

  • 0 posts edited
  • 6 helpful flags
  • 2,036 votes cast
Jun
2
comment Spelling mistakes in the file?
Are you sir tin you went to automatically correct all miss spilled words? You will miss out on a lot of correctly spelled words that are in the wrong place, or you'll have the auto-correct put correctly spelled wrong words in place of incorrectly-spelled words. It's a hard task.
Jun
2
answered get value after specific word
Jun
1
awarded  Enlightened
Jun
1
awarded  Nice Answer
May
29
comment What does an @ symbol denotes in the beginning of a unix domain socket path in Linux?
For what it's worth, the more modern ss program also shows socket endpoints like "@/tmp/.X11-unix/X0"
May
23
answered Split shell horizontally to show ls -al and pwd
May
22
awarded  Nice Answer
May
22
revised Why is sudo slow when I mistype my password?
Remove a stray word.
May
22
comment Why is sudo slow when I mistype my password?
@jordanm - thank you! That's exactly what I'm looking for to penalize the Chinese ssh password guessers.
May
22
answered Why is sudo slow when I mistype my password?
May
22
comment How can I end a here-document that starts with <<\\$fff?
@G-Man - much obliged for the thorough and well-thought-out answer to what I had assumed was a rhetorical question. Sometimes rhetorical questions have answers, I reckon.
May
21
answered Is it possible to execute a binary without specifying the full path or the preceding './'?
May
21
comment How can I end a here-document that starts with <<\\$fff?
Pedagogically, why would you put a question like that on a test? It's a corner case at best, probably a worst practice, and easily and habitually avoided by every "here document" writer ever. Sometimes you've gotta wonder about academics...
May
21
comment What does this grep expression mean?
We need to see the exact command you invoke. As it stands, the backslashes might be to protect '*' and '?' from shell expansion, or to keep grep from treating them as metacharacters.
May
20
comment I keep getting error: PHP Startup - libphp5.so missing? PHP seems to run fine with Apache
@PancakeMaker - last things I can think of is to look in /var/log/httpd/error_log when you run the PHP script from the web. You may also want to go into /etc/php/php.ini and turn up error reporting: "error_reporting = E_ALL" and "display_errors = On" and "display_startup_errors = On". That might give you some extra info to go on. Also: now that you're getting a different error, open a new question, complete with version numbers for all the packages involved, and the smallest piece of PHP that triggers the problem.
May
20
comment I keep getting error: PHP Startup - libphp5.so missing? PHP seems to run fine with Apache
@PancakeMaker - my mistake. It's the "apache" package. Try un-installing and re-installing "apache". pacman -Q apache tells me "apache 2.4.12-4"
May
20
comment delete lines of a file from a file
@aroraa - I don't think so. sed has a different idea of how lines are numbered, because it never "backs up", and it has a sequence of input lines. The sed -f solution is probably the best - less work than mine.
May
20
comment I keep getting error: PHP Startup - libphp5.so missing? PHP seems to run fine with Apache
@PancakeMaker - do nm -D /usr/bin/httpd | grep ap_server_root to see if the Apache executable even has that symbol defined in it. Also, is package "httpd" up to date? pacman -S httpd should show you.
May
20
answered delete lines of a file from a file
May
20
comment Output of wc | awk is different in shell script than from cli
There's something going on that you haven't written down. You have a string "somprocess". What's that string in the real script? What's your interactive shell? What version is /bin/bash and your interactive shell? For instance pgrep awk | wc | awk '{print $1}' says 0 for interactive zsh, but 1 for bash and dash.