Unix

intercept stdout/stderr of another process or disowned process

2010/11/23

The command is definately going to save your day if you have disowned the process by mistake. Only uses strace so might as well work on Solaris also, though not tried it. intercept stdout/stderr of …

Broadcast your shell thru port 5000

2010/11/20

Broadcast your shell thru port 5000 […] <td> <div class="text codecolorer"> mkfifo /tmp/fifo;(nc -q0 -l 5000 < /tmp/fifo &);script -f /tmp/fifo </div> …

Print all environment variables, including hidden ones

2010/11/09

Print all environment variables, including hidden ones […] <td> <div class="text codecolorer"> for _a in {A..Z} {a..z};do _z=${!${_a}*};for _i in `eval echo …

bash script to run a command and take screenshot in every loop.

2010/09/24

Couple of days back, I had posted a command to display a stop timer with bash and echo. There I had also put the following gif file: <img class="size-medium wp-image-2555" …

bash – echo command with option to display the output on the same line.

2010/09/21

Here is a nice little trick to display the output in the same line : […] <td> <div class="bash codecolorer"> &nbsp;<span class="kw3">echo</span> …

Handy one-liners for SED

2010/09/14

Here are some links to sed one liners, pretty useful if you want to use the power of sed. <a …

Use the last command\’s output as input to a command without piping and bind to it to a key sequence in bash.

2010/09/01

Use the last command&#8217;s output as input to a command without piping and bind to it to a key sequence in <a class="zem_slink" title="Bash (Unix shell)" …

tee to a file descriptor

2010/08/13

tee to a file descriptor […] 1 $ tee >(cat &#8211; >&2) the tee command does fine with file names, but not so much with file descriptors, such as &2. This uses process …

Magic space on the current command line

2010/06/25

# For how to set up magic space for Bash see: # – http://www.ukuug.org/events/linux2003/papers/bash_tips/#slide15 # – http://codesnippets.joyent.com/posts/show/1690 man bash 2>/dev/null | less -p …

cdargs – bash cd command with bookmarks and browser.

2010/06/22

cdargs is a <a class="zem_slink freebase/en/bash" title="Bash" rel="homepage" href="http://tiswww.case.edu/php/chet/bash/bashtop.html">bash shell cd with …

colors in bash – script to display all the possible colors.

2010/06/06

If you wanted to have colors in the bash output (including the colors in PS1-4), don&#8217;t you keep wondering how the color code would look on the terminal. So, I wrote this small script to show …

mussh - Multihost SSH wrapper

2010/05/25

Description: […] Mussh is a <a class="zem_slink freebase/en/shell_script" title="Shell script" rel="wikipedia" …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it