I could not delete the extra white space around a .eps file in Ubuntu 12.04. I have done the same, using the command fixbb <inputfile.eps> <outputfile.eps> in earlier versions but in this version, whenever I try, I get the messeage fixbb:command not found.
Asked
Active
Viewed 883 times
1
IronMan007
- 157
- 1
- 2
- 12
RANJIB BANERJEE
- 11
- 1
1 Answers
0
you can do simple scripting for doing that
ls | grep " " | while read -r file_name ; do mv -v "$file_name" `echo $file_name | tr -d ' '` ; done
before doing that you need to enter into that directory then execute the script.
you can also use alias here to call it with out using whole command everytime.
in the terminal do as ,
nano ~/.bashrc
and in that text file at the last place paste the above script as
alias fixb='ls | grep " " | while read -r file_name ; do mv -v "$file_name" `echo $file_name | tr -d ' '` ; done'
then save and close with CTRL+X & Y.
now in the terminal type as
source ~/.bashrc
to reload the bashrc file. now you can simply remove all the spaces.
Raja G
- 105,327
- 107
- 262
- 331