2,772 reputation
523
bio website janosgyerik.com
location Hungary
age 36
visits member for 2 years, 8 months
seen 39 mins ago

I like to code and I do it a lot. I want to build software to save the planet. Passionate polyglot programmer, generalist with specialties. Code reviewer, unit tester, driver of change. I get things done.

I make free Android apps such as Programming Quiz, websites such as bashoneliners.com, and other open source stuff. I wrote a book on Bazaar Version Control, and an article on shell tips & tricks for Linux Journal.

I blog, tweet (@janosgyerik), and post "pro tips" on CoderWall.

Careers 2.0: http://careers.stackoverflow.com/janosgyerik

LinkedIn: https://www.linkedin.com/in/janosgyerik


1h
comment how to download a file using just bash and nothing else (no curl, wget, perl, etc.)
The netcat and telnet hacks are wicked! I hope you don't mind I added in this collection: bashoneliners.com/oneliners/oneliner/211
1d
comment How to calculate percent of every column?
Done, see my updated post
1d
comment How do I write a command for the Exec key in a .desktop file containing a reserved character correctly?
Thanks @reggie-man, good point, updated my post
2d
comment How do I make an alias to substitute single word in a piped command?
Yes. You can use $1 if you want only the first argument.
2d
comment tmux ignores the configuration files
What happens if you create a new tmux.conf file with the single line set -g status-bg "#105C8D" and run tmux -f tmux.conf ?
2d
comment How to list filenames within a folder based on a pattern supplied?
You could do that with either ls *a* or ls | grep a
2d
comment Error when compiling nginx
@ValeriRangelov so... problem solved then?
2d
comment apt-get update exit status
Hi @PolHallen I noticed I made a mistake. I corrected it now, see my updated post.
2d
comment bash permission denied but sh works
Run the mount command and find the line of the mount point. I bet it has noexec written on it. If you mount the drive manually, you can specify the exec flag explicitly. But as I explained, I don't recommend to do that.
2d
comment How do I write a command for the Exec key in a .desktop file containing a reserved character correctly?
This is extremely badly formatted. Please clean it up, and give more clear instruction for the OP what he should do.
2d
comment How can I type in one terminal and have it appear as if I were interacting with the second terminal (but not the first)?
It's not clear what you're asking. Have you tried tmux/screen and found that it cannot do what you need? Or are you asking if tmux/screen can theoretically do this?
2d
comment Deleting symlinks of Firefox in Linux RedHat
What do you mean, "played with symlinks" ? The firefox icon that doesn't work is on your desktop? Which desktop environment are you using? If you click on Application->Internet->Firefox, does that work?
2d
comment certain web sites are not accesible from Centos 6.5
This is extremely badly formatted. If you want help, please take the time to format your question properly so it's easier to read.
Dec
18
comment Finding the correct tmp dir on multiple platforms
Hm, that's pretty clever indeed! +1
Mar
10
comment git push in gnome-term crashes my window manager
@user1855481 how about SSH_ASKPASS=/bin/false ?
Mar
10
comment bash scripting - read tarball from stdin
@jayhendren when you got an empty file, you must have used a program somewhere that consumed stdin, that's why.
Mar
10
comment Find the maximum length of characters in a field
@suneelbabu.etl great!
Mar
10
comment How to use restricted characters in egrep?
Replace egrep -l with pcregrep -Ml
Mar
9
comment Find the maximum length of characters in a field
@suneelbabu.etl did you try the awk solution? That should work, dynamically detecting the max length.
Mar
8
comment Trouble Installing APT on Centos 6 64 bit
@DavidSilvaSmith what is your real goal here? APT is a "means to an end", not really an end itself. Maybe you're asking the wrong question. If the only reason you're installing APT is to install XYZ, then maybe should be asking how to install XYZ.