All Tips


9

Tip #547   Connect your mic to a remote speaker

You can use the following to output your microphone to a remote computer's speaker:

Read more »

8

Tip #546   Move and follow

This can be used instead of "mv" to move file(s) and then cd into the destination folder.

Read more »

4

Tip #544   Change extension of files in the current directory

This tip is inspired by #27 ( http://www.shell-fu.org/lister.php?id=27 ) which I think is misleading, here's a much more reliable and efficient version:

Read more »

3

Tip #542   Implementing join in bash

Implementing "join" in bash (python's join, php's implode, etc.).

NOTE: the $ means "type what follows at your terminal prompt" (some people thinks that the $ is part of the command).

Read more »
  • TAGS:

4

Tip #540   Command examples from shell-fu

The following isn't particularly pretty and should be considered a work in progress, but it's quite fun.

Get examples of ways a command can be used direct from shell-fu by adding the following alias:
Read more »

9

Tip #539   Using sed across multiple lines

Sometimes when using sed you find that you need to match across line endings, this can be achieved by getting sed to match the first line and then pulling a second line into the buffer with the N command.

For example, if we have a file: Read more »

-72

Tip #538   Fast access to frequently used directories

Add the following function/alias combo to your profile for fast directory access:
Read more »
  • TAGS:

12

Tip #537   Run a command when not busy

You can use the following to run a command only when the load average is below a certain level

Read more »
  • TAGS:

2

Tip #536   Comparing local and remote files

Suppose we have to find the differences between local file "/tmp/localfile" and remote file "/tmp/remotefile" located on remote host 123.4.5.6

This is how can do it:
Read more »

1

Tip #535   Check PHP Syntax

Here's a simple one liner you can use to syntax check all php files in your working directory.
Read more »
  • TAGS: