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.


Apr
5
awarded  Yearling
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
revised Find the maximum length of characters in a field
deleted 3 characters in body
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
revised Find the maximum length of characters in a field
added 56 characters in body
Mar
8
revised Find the maximum length of characters in a field
added 379 characters in body
Mar
8
revised Find the maximum length of characters in a field
added 154 characters in body
Mar
8
answered Find the maximum length of characters in a field
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.
Mar
1
answered how to execute a python program in a shell script
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
revised Adding a Column of values in a tab delimited file
added 386 characters in body
Feb
28
comment add to end of line with pattern matched
Thanks @glennjackman, updated my answer
Feb
28
revised add to end of line with pattern matched
added 238 characters in body
Feb
28
answered Adding a Column of values in a tab delimited file