#! /bin/bash ## This shell script removes the white space of all *jpg files in the present folder e.g., 'empirical potential*.jpg', ## into e.g., 'empiricalpotential*.jpg'. ## Modify accordingly if you want to remove white space in the filenames with other extention. ## For an blanket effect, replace the extension with a *, i.e., rename "s/ *//g" *.*. ## All file name in the current will be replaced by that without a white space. rename "s/ *//g" *.jpg #remove white space in file names *.jpg