for f in *; do file=$(echo $f | tr A-Z a-z | tr ' ' _) [ ! -f $file ] && mv "$f" $file done
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
replace space in the filenam in linux using mv
To replace the space in the middle of the filename in linux you can use "mv"
Posted by
Alexandre
Saturday, February 21, 2009
Suse is bad
We decided to try Suse because one of the Senior Directors use to work with Novell in 1932. But it is a bad Linux flavor, one example of a thousands: Man page, if you use the man page it give you a error even for built in commands like "man cp", it should come out of box without you have to do anything
iconv: conversion from utf8 unsupportediconv: try 'iconv -l' to get the list of supported encodingsSee how to solve it here http://forum.nedlinux.nl/viewtopic.php?id=26602 Packages, there is not a lot of RPM available in the open source community for Suse, let's pick a famous one "GD" or "Imagemagick", there is no RPM for them, I know linux fans that we like to compile software, give me a break, or you can hack and use opensuse with rug. My personal choice are (not in this order):
- Fedora
- RedHat
- Ubuntu
- Knoppix
Posted by
Alexandre
Sunday, February 24, 2008
Samba
Every time I have to do something in Samba, I have to search the internet for hours, always have problem with Samba, most of it, I don't use Samba everyday and it goes to my /tmp folder in my brain RAM, overtime it get deleted, to not forget .....
list the servers you have in your network
smbclient -L servername --user='domain\username'to mount a server, it will ask your password afterwards
mount -t smbfs -o username='domain\username' //server/folder mountSamba by example http://www.samba.org/samba/docs/man/Samba-Guide/ Samba howto http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/
Posted by
Alexandre
Sunday, February 24, 2008
Subscribe to:
Posts (Atom)