for file in *.txt
do
newname=$(echo $file | tr ' ' _)
mv "$file" $newname
done
just a little handy tool
for file in *.txt
do
newname=$(echo $file | tr ' ' _)
mv "$file" $newname
done
sh-3.2# du -shcx /*
11G /Applications
8.4G /Developer
5.7G /Library
0B /Network
2.8G /System
4.0K /User Guides And Information
28G /Users
4.0K /Volumes
4.1M /bin
0B /cores
4.5K /dev
4.0K /etc
1.0K /home
0B /lost+found
15M /mach_kernel
1.0K /net
49M /opt
8.6G /private
2.3M /sbin
4.0K /tmp
1.4G /usr
4.0K /var
65G total
sh-3.2# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/disk0s2 238Gi 181Gi 57Gi 77% /
devfs 182Ki 182Ki 0Bi 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% /net
map auto_home 0Bi 0Bi 0Bi 100% /home
Filesystem Size Used Avail Capacity Mounted on
/dev/disk0s2 238Gi 68Gi 170Gi 29% /
devfs 181Ki 181Ki 0Bi 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% /net
map auto_home 0Bi 0Bi 0Bi 100% /home
rocks list host interface
rocks set host interface mac HOSTNAME iface=eth1 mac=00:00:00:00:00:02
please be a aware that you also have to remove the mac address definition in the following file:
/etc/sysconfig/networking/devices/ifcfg-eth*
you should be able to just uncomment the mac address line, without any ill effects and this will simplify this process next time.
and possible in the dhcpd.conf file
vim /etc/dhcpd.conf
in case you modify the eth0 interface. To ensure that the dhcpd configuration still works as supposed to.