I am new to Shell scripting.Please give some guidence How to place a find command in my shell script?
check the man pages of find for details
Thanks for your replay actually i am writing one script which will read the contents of file
Ex:
Test.env
'This will be stored in any location in server
username=abc
password=xyz
if i am using the find command below its working
grep "username" <filelocation>/Test.env | cut -d = -f1
I am getting the O/p as abc
But i want the same using shell script.
put these in to a file, and invoke it .. it should run !
What is the different thing you are trying for ?
the file location may be varied from one server to the other server so i have to find the location using find command and whatever the o/p i am getting it should be appended to the following command .
grep "username" <Output Of Find Comman>/clarify.env | cut -d = -f1
ok, in bash you can use like this...
filepath=$(find . -name 'clarify.env');
grep "username" $filepath | cut -d = -f2
Thanks for ur Response.But with find command i am getting that env file is located in more than one location but i need the env from "application" directory.
Can u help me.