Convert newlines to spaces
TR can be used to convert a list of items from one per line to space separated with this:
|
1 |
tr '\r\n' ' ' |
TR can be used to convert a list of items from one per line to space separated with this:
|
1 |
tr '\r\n' ' ' |
Posting this because I always forget and have to goggle for the answer. The default “vi” installed with Ubuntu has terminal emulation problems on both Ubuntu Desktop and through putty. The fix is simple … install “vim” …
|
1 |
sudo apt install vim |
CentOS uses the libjpeg-turbo fork of the original libjpeg project. So to install jpegtran do this:
|
1 2 |
yum install libjpeg-turbo-utils |
Recently needed a good way to fetch the IP address of each interface within a script. Tried things like:
|
1 |
ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' |
and
|
1 |
/sbin/ifconfig | sed -n '2 p' | awk '{print $3}' |
But this is fairly ugly. So I tried:
|
1 |
hostname -I |
This gives a list of IP addresses but they
On October 19, 2016, a privilege escalation vulnerability in the Linux kernel was disclosed. The bug is nicknamed Dirty COW because the underlying issue was a race condition in the way kernel handles copy-on-write (COW). Dirty COW has existed for
Reliable Penguin provides managed web hosting, systems administration, website and server migrations, and expert consulting.
Submit the form—or for immediate service call 866-649-7984.