Hi,

On Sun, Mar 25, 2012 at 10:02 PM, Bharath Kumar
<[email protected]> wrote:
> I have written a shell script to find out what type of file is the file I am 
> searching for. If the resultant file name doesnt have any gap (like 
> /path/name/Bharath_file.txt) I get the result correctly. But if the file has 
> a gap (like /path/name/Bharath Kumar Letter.pdf) I get simply "ERROR". Is 
> there any bug ?? Please help me resolve the bug please ??
>

Not sure what you are trying to achieve here. If you know the path to
the file and also the extension to find the type, what is the need of
using 'find' command?

> This is my code snippet :
>
> #!/bin/bash
> echo -e "Input the file that you want to search: c"
> read input
> find ~ -name ${input}

You should enclose the file name in quotes.

Thanks & Regards,
Guruprasad
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to