thepoch: Local CentOS yum repository via FTP and rsync

thepoch:

So we have a local yum repository available through FTP. It saves us a lot of bandwidth since all our servers are running either CentOS 5.x or 6.x. It also allows us to setup a server using kickstart and PXE boot, installing straight from the FTP server (a topic for another time).

So what is…

(Source: thepoch)

2 notes

calculate on #bash

#!/bin/bash

result=`echo scale=2\; 24 / 16 | bc`
echo $result # = 1.50
 

0 notes

split path from filename #bash

#!/bin/bash

# file
e=”/path/to/file.sh”

# splitted vars
FILEDIR=”${e%/*}”
FILENAME=”${e##*/}”

0 notes