Tag Info

Hot answers tagged


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 ...


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}.


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


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.


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 ...


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


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, ...


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.


If there was an option to control the format of what you see during a history i-search, it would be documented in the man page. Since you didn't find such an entry, there probably isn't one. It would probably be implemented as a shopt toggle setting, or as PS6 or something for a format string. I agree this would be a neat UI feature, to help you know what ...

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