command line interface - Linux deleted files with spaces -


i have files name has spaces in linux , want delete (or rename) command line. i've looked @ several sites , should put \ before space, put '', put " " ... none works me. if split in 2 name space. can do? in settings linux console? there many files folder, , not mine, is, want family, not every wallet. put example of say: ((((no existe fichero o directorio means not exists file or directory))))

 ->ls -lrt sincerhog\ 150626* -rw-rw-r-- 1 s10283 dessiis  167 jun 26 09:25 sincerhog 150626092551.xls -rw-rw-r-- 1 s10283 dessiis    0 jun 26 09:35 sincerhog 150626093540.xls -rw-rw-r-- 1 s10283 dessiis 2306 jun 26 09:59 sincerhog 150626095953.xls -rw-rw-r-- 1 s10283 dessiis 2306 jun 26 10:12 sincerhog 150626101237.xls    ->rm sincerhog\ *  ls: no se puede acceder sincerhog: no existe el fichero o el directorio  ls: no se puede acceder 150626092551.xls: no existe el fichero o el directorio ls: no se puede acceder sincerhog: no existe el fichero o el directorio ls: no se puede acceder 150626093540.xls: no existe el fichero o el directorio ls: no se puede acceder sincerhog: no existe el fichero o el directorio ls: no se puede acceder 150626095953.xls: no existe el fichero o el directorio ls: no se puede acceder sincerhog: no existe el fichero o el directorio ls: no se puede acceder 150626101237.xls: no existe el fichero o el directorio 

depending on shell, when invoke rm sincer* star (*) in sincer* makes shell think sincer* pattern , file name expansion kicks in. replacing pattern (space separated) list of filenames resulting in command

rm sincerhog 150626092551.xls sincerhog 150626093540.xls 

but want is

rm "sincerhog 150626092551.xls" "sincerhog 150626093540.xls" 

you try

rm sincerhog\ * 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -