Search Results

Search: Posts Made By: dineshmurs
Forum: Programming 05-25-2011
897
Posted By dineshmurs
Need Regular expression
Need regular expression to accept alphabets or numbers for first three places
6,669
Posted By dineshmurs
Not only for sqls i need to execute some...
Not only for sqls i need to execute some utilities
so i need to read the all the file names. and in for loop i will pass individual file name as a parameter to that utility.
6,669
Posted By dineshmurs
How to read file names in the directory?
I am having n files in a directory i want to read all the file names from the script file .It is better if any one provide a sample script.

Elaborating the scenario:

i am having n number of...
14,562
Posted By dineshmurs
How to call a shell script from another shell script
I am having two (abc.sh,abc1.sh).I want to call abc1.sh from abc.sh
28,112
Posted By dineshmurs
How to execute the stored procedure from shell script
How to execute the stored procedure from shell script and is there any possibility to print the dbms output in a log file.
16,890
Posted By dineshmurs
How to read the data from the text file in shell script?
I am having one text file and i need to read that data from my shell script.

I will expain you the scenario:

Script look like:

For name type 1:
For age type 2:
For Salary type3:
...
1,640
Posted By dineshmurs
Thanks for the response.Its your code is working.
Thanks for the response.Its your code is working.
1,640
Posted By dineshmurs
#!/bin/sh find_name=$(find . -name...
#!/bin/sh

find_name=$(find . -name "app.env");
var=$(tr ' ' "\n" < $find_name| grep "\/temp\/app.env")

'Here in the below command i have hardcoded the path(/usr1/Server/temp/app.env).
Instead...
1,640
Posted By dineshmurs
Thanks for your replay.After using the above cmd...
Thanks for your replay.After using the above cmd i am getting the following error
Error
====
No such file or directory
Test1.sh[21]: ./usr1/Server/temp/app.env ./usr1/Server/temp/upp/app.env...
1,640
Posted By dineshmurs
how to get the specified content of the text into a variable.
I am having one string like

./usr1/Server/temp/app.env ./usr1/Server/temp/upp/app.env ./usr1/Server/ORIG_temp/app.env ./usr1/Server/ORIG_temp/upp/app.env ./usr1/Server/work_temp_40/app.env...
2,055
Posted By dineshmurs
Thanks a lot this is my first shell script its...
Thanks a lot this is my first shell script its working my problem got resolved.

Thanks & Regards
Dinesh
2,055
Posted By dineshmurs
my intension is to take the O/P of find commad...
my intension is to take the O/P of find commad into list not the contents of application.env

say

find . -name "application.env"

returns

usr1/app/application.env...
2,055
Posted By dineshmurs
Thanks for your response.i am having the...
Thanks for your response.i am having the "application.env" in more than one location in the server

so i am using the find command to get the locations of application.env

file_name=$(find ....
2,055
Posted By dineshmurs
Similar to the code .i tried it but not working.
Similar to the code .i tried it but not working.
1,903
Posted By dineshmurs
Thanks for ur Response.But with find command i am...
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.
2,055
Posted By dineshmurs
i will explain with the scenario Ex: ...
i will explain with the scenario
Ex:

find . -name "application.env"

which will results in more than one location.In this case i need to take it as a list.

so my intenstion is to get the...
2,055
Posted By dineshmurs
how assign the O/p of find command to a list.
i want to take the o/p of find command into a list like in java. can anyone help me regarding this.
1,903
Posted By dineshmurs
the file location may be varied from one server...
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...
1,224
Posted By dineshmurs
Technical Query
I am new to Shell scripting.Please give some guidence How to place a find command in my shell script?

---------- Post updated at 02:33 AM ---------- Previous update was at 02:16 AM ----------
...
1,903
Posted By dineshmurs
Thanks for you quick replay
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
...
1,903
Posted By dineshmurs
Using the find command in a script
I am new to Shell scripting.Please give some guidence How to place a find command in my shell script?
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 04:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy