2,292 reputation
415
bio website janosgyerik.com
location Paris, France
age 35
visits member for 2 years, 3 months
seen May 8 at 16:32

I like to code and I do it a lot. I want to build software to save the planet.

If you use Bazaar, you might be interested in my book Bazaar Version Control. If you work a lot in the shell, you might be interested in my Time-Saving Tricks on the Command Line.

I make free Android apps like Programming Quiz, websites like bashoneliners.com, and other open source stuff.

You can find me on Twitter as @janosgyerik or on my blog.


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.
Mar
6
comment Get Network activity
Embedded board... Sounds like a restrictive environment. Can you use python, for example?
Mar
1
comment how to execute a python program in a shell script
@rajcoumar it's more portable this way. In some systems python might be in /usr/bin/python, in others it might be /opt/bin/python. With #!/usr/bin/env python it should work in all systems where python is correctly installed, regardless of its exact location.
Feb
28
comment Adding a Column of values in a tab delimited file
@Ron sed is most practical for pattern substitution and saving in-place. For your requirement of saving the file it was a relatively convenient option. If you don't need to write back to the same file you're processing, then awk is usually much easier to work with.
Feb
28
comment add to end of line with pattern matched
Thanks @glennjackman, updated my answer
Jan
16
comment Match a single character in a string bash script
@NirmalArri save the script for example in script.sh, and run it with bash script.sh
Jan
16
comment How to create a patch file for new source code
@AmirAfghani I improved my answer. See my last word of caution, about what happens when using such patch file. And maybe unaccept the answer for a while, maybe others will answer it better. You can accept a few days later if it still makes sense.
Jan
16
comment Is there a Linux deep diff tool that also compares file attributes?
I don't know. If not, as a workaround, perhaps you could print the files + attributes you're interested in and diff the text output: diff <(find ...) <(find ...)
Jan
15
comment How do I decrypt a message using openssl's CLI?
Can you ask for a checksum of the file? That way you could confirm if your file is corrupted or not.
Jan
15
comment How do I decrypt a message using openssl's CLI?
@user50849 I updated my answer thought it looks like you're already doing that... After you decode from base64, what does the file command tell you? Is the file binary?
Jan
15
comment How do I decrypt a message using openssl's CLI?
That error is common when the file is not really an encrypted file... Perhaps you need to unzip it first?
Jan
15
comment Why can't I ping Google?
How do you know that 209.139.209.33 is correct for you? Can you ping it?
Jan
15
comment Fedora 20: How to navigate to Windows partitions via commandline?
How do you use gvfs tools to browse those mounts via terminal?
Jan
15
comment Using passwordless ssh on CentOS 6
Is it asking for password or passphrase. They are different things, caused by different problems in your configuration. Please clarify.
Jan
15
comment Specify consistent week boundaries using date
@terdon I hinted at that, but didn't explain how to handle it. I rewrote my answer that makes this more clear, with other improvements. Thanks for pointing out!