On Sun, 2008-02-17 at 14:49 -0700, Carlos F. Lange
tar cvf shortname.tar longname.pdf
But the best is to create a habit of storing names without brackets and spaces. Here is my alias for replacing all spaces in file names within the current directory: alias cleanspaces='for i in *" "*; do mv -i "$i" ${i// /_}; done' which I keep in my .alias
--
Not having a .alias in 10.0 I use this script which is a fork of another. Music files can be a real pain when downloaded they have all those Winblows style spaces. Also good for question marks such as when I do a mass article download from online news sources. As always in linux there are at least six ways to accomplish the same task. RemoveSpaceInName.sh # +------------------------------------+ # | Loop over all files in a directory | # +------------------------------------+ # +--------------------------+ # | $i = current filename | # | remove blanks | # | emit the result | # +--------------------------+ for i in *.ogg ; do # echo $i NewName=`echo $i| tr -d ' '` # echo $NewName mv "$i" "$NewName" -- _______ _______ _______ __ / ____\ \ / / ____|_ _\ \ / / | | \ \ /\ / / (___ | | \ \ / / | | \ \/ \/ / \___ \ | | \ \/ / | |____ \ /\ / ____) |_| |_ \ / \_____| \/ \/ |_____/|_____| \/ | \ /|\ || |\ / |~~\ /~~\ /~~| //~~\ | \ / | \ || | X |__/| || |( `--. |__ | | \| \_/ / \ | \ \__/ \__| \\__/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org