#vim - Tue 10 Apr 2007 between 19:05 and 19:51

NY Lost Funds



Pechorinthanks
\amethystIt shouldn't take a whole month
petfrogghello... i know this is not vimrelated... but i hope someone i nice enough to answer. I got loads of files with blanks in there filenames. How do replace the blanks to underscore in linux?
actionpetfrogg hopes for the best
petfrogghopes for the best
\amethystpetfrogg: for x in *\ *; do mv "$x" $(echo "$x" | sed -e "s/ /_/g"); done
petfrogg: assuming it's only space that you have to worry about
petfroggthanx! gonna try
\amethysterr
That won't work right if the names have tabs or newlines in them
actionpetfrogg gives \amethyst a hug
petfrogggives \amethyst a hug
it worked
\amethystto be extra-safe, the $(...) should be wrapped in double-quotes itself
petfroggthanx
lenscape_petfrogg: if you're using SuSE, there is a nice 'rename' command that does this
it might be on other distros too, but the 'rename' command on Ubuntu isn't so good.
\amethystlenscape_: which one does SuSE have? Larry Wall's?
petfrogggentoo uses rename but i didn't get it to work
your solution worked in a snap
\amethystI think it would be rename 's/ /_/g' *
lenscape_\amethyst: I think that's the Ubuntu one. It's written in perl.
the one on SuSE is a binary
rename ' ' _ *.mp3 (or whatever)
\amethystAre those tr// sequences?
Or a regexp and replacement?
lenscape_no. Simply replace 1 string for another
\amethystthe perl one's more powerful then :)
lenscape_yes but also easier to cock-up!
\amethystwhenever I'm doing a mass rename I simulate it first
just to be sure
occasionally I've swapped variable names in a way that would cause everything to be renamed to the same file :)
PlasmaHHhi, anyone knows if the bug of vim that deleting the swap file from a crashed session is not choosable in the german version is ever being fixed?
lolowniaI didn't find help on #gentoo, so maybe somebody here knows how to get vim :help on this distro?
it's not installed by default and I can't find other port with it
goibhniulolownia: I'm just checking my use flags for you now ... 1 minute
lolowniaWell i checked them and there is no 'doc' useflag for vim or vim-core
that's why I'm troubled
i found colorschemes are under app-vim/colorschemes
but no help :/
goibhniulolownia: so you start vim and then type :help
and nothing happens?

Page: 2 9 16 

IrcArchive

NY Lost Funds