Tag Info

Hot answers tagged

6

You can translate special characters (binary data) into ordinary characters that are safe to display by piping your tail command into cat -v: tail --follow=name my-rolling-file.log | cat -v The -v (verbose) option of cat (also known as --show-nonprinting) displays "nonprinting" characters using the ^ and M- notations: 0x00 is displayed as ^@ 0x01 is ...


4

What about this, tail --follow=name my-rolling-file.log | strings The default for strings is that it will only output printable characters in lengths of 4 (or more), but you can change this with -n {number}.


3

Convert (some troublesome) characters to . with tr: tail -f data | tr "\000-\011\013-\037\177-\377" "."


2

It depends on the editing mode of your shell. For example I am using vi-mode and type Esc and * and the wildcards will get expanded.


2

There are two popular implementations of updatedb. One of them is from GNU findutils. Another is mlocate. They support different command line options and configuration files, especially for the updatedb program. It appears that the updatedb command on your system is the one from mlocate but the man page is the one from findutils. Normally, Ubuntu has a ...


2

There's an example in the abiword man page: abiword --to=rtf --to-name=fd://1 something.doc


1

Let less handle the problem, as it's good at it. The pager less is pretty good at formating binary files for output. Also, the pager features, like scrollback and searching are often useful. It has no direct option for following a file that grows, but it has way to provide keystrokes to "type" after startup. The key F starts following the growing file, ...


1

Take a look at tmpreaper: it allows you to clean up files within certain directories based on their inactivity. It provides a large number of options to control what it cleans up (or leaves untouched) in detail.


1

Well, you could simplify it slightly to: $ [ -f /dev/null ] || sed 's/a/A/g' <(echo "thisis""avery"\ "long""string"\ "Ihave""separated"\ "into""smaller"\ "substrings") thisisAverylongstringIhAvesepArAtedintosmAllersubstrings The important point is to not have any extra whitespace in the input string, so no spaces around the \. Glenn's suggestion to ...



Only top voted, non community-wiki answers of a minimum length are eligible