How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh".
Appreciate your inputs.Thanks.

Answer Posted / abc

For single file, you can do following command;

mv "interview question.sh" interview-question.sh

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is gui scripting?

601


Where are cowrie shells found?

574


What are the four fundamental components of every file system on linux?

1157


What is an inode block?

575


What is shell and shell script?

556






What happens on a system call?

558


What is shell company all about?

573


What is meant by dos operating system?

570


What is the fastest scripting language?

547


Explain about "s" permission bit in a file?

609


What is the use of "$#" in shell scripting?

550


Can you write a script to portray how set –x works?

550


What is the way to do multilevel if-else's in shell scripting?

655


How do we delete all blank lines in a file?

575


How to get the last line from a file using just the terminal?

667