Reputation
3,059
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
8 30
Newest
 Yearling
Impact
~271k people reached

Jan
15
comment UNC Argument in bash scipt
Git Bash allows you to use //my/share/is/here style UNC paths. You can even cd there (something a DOS prompt wouldn't let you). Might work with Cygwin too, but I haven't tried.
Jan
12
comment Strip off word pattern at the end of string using sed
@Costas why not make that a proper answer?
Jan
12
comment Strip off word pattern at the end of string using sed
\s* is zero or more white-space characters. You might not need it. It seems Costas was being extra careful.
Jan
12
comment How can I run a specific line as a command in a text file?
No need to put a space between line_num and p, so for example if line_num is 123, then you can sed -n 123p | bash. And if sh is enough, then just use sh instead of bash.
Dec
23
comment renaming all files in all sub directories
@juicebyah my bad, I overlooked an important detail in your question. Fixed it now, see my updated post.
Dec
23
comment Unable to run python script - Permission Denied
Every time you do chmod 777, somewhere in the world a kitten dies
Dec
22
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
Dec
20
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.
Dec
20
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 ?
Dec
20
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
Dec
20
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.
Dec
20
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.
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.
Mar
6
comment Get Network activity
Embedded board... Sounds like a restrictive environment. Can you use python, for example?