Code:
#!/bin/bash
mv /path/of/the/file /same/path/with/new/name
service start service-name
If you want to rename multiple files of same directory, you can use reg-exp like this,
Code:
Removing all blank space with rename command:
$ rename "s/ *//g" *.mp3
To remove .jpg file extension:
$ rename 's/\.jpg$//' *.jpg
To convert all uppercase filenames to lowercase:
$ rename 'y/A-Z/a-z/' *
To Remove a String from a filename:
$ rename 's/\\//g' *
and use crontab mentioned by sag47.