Search Results

Search: Posts Made By: bhas85
8,877
Posted By bhas85
Hi Jim, Thanks so much for your...
Hi Jim,

Thanks so much for your suggestions. I am very happy with your solution.
8,877
Posted By bhas85
Find all .sh files in file system and need to replace the string inside .sh files
Hi All,
I need to write a script to find all "*.sh" files in /home file system and if any string find "*.sh" files with the name vijay@gmail.com need to replace with vijay.bhaskar@gmail.com. I just...
487
Posted By bhas85
Change the string in between " "
Hi All,

In I text file I had lot of columns as below and with different id's and I need to replace with only one "vreddy". Please let me know the command for it.


...
1,989
Posted By bhas85
Hi rbatte1, when run the script now I...
Hi rbatte1,

when run the script now I am not seeing any errors. But it's stopping after the below. Can you please help me here.

./vijay.sh
SQL*Plus: Release 11.2.0.3.0 Production on...
1,989
Posted By bhas85
still no luck.
still no luck.
1,989
Posted By bhas85
Error while running Procedure in shell script
Hi All,

I am running the below proc in unix by connecting through sqlplus and the procedure is completing successfully. But when i am trying to run through shell scripting by using function. I am...
1,951
Posted By bhas85
Please delete my post which was posted wrongly
Hi Moderator,

Please delete the below post which i posted by mistake.Thanks in advance.

https://www.unix.com/shell-programming-and-scripting/260605-closed-script-not-working-new-post.html
...
1,256
Posted By bhas85
Thanks to all for your suggestions and Franklin52...
Thanks to all for your suggestions and Franklin52 code worked for me...
1,256
Posted By bhas85
Required 3 lines above the file and below file when string matches
i had requirement like i need to get "error" line of above 3 and below 3 from a file .I tried with the below script.But it's not working.



y='grep -n -i error /home/file.txt|cut -c1'
echo $y...
1,866
Posted By bhas85
Hi I am getting error find: bad option...
Hi I am getting error find: bad option -maxdepth.How the above script will notify when the new file is created in the directory.
1,866
Posted By bhas85
I am not sure whether my way is correct or...
I am not sure whether my way is correct or not.First i manually fill 1.txt how many files are there then it will automatically updates.by comparing i can check the new file is created or not.But the...
1,866
Posted By bhas85
Shell script to find if any new entry in directory
I require a shell script to find if any new entry of dump files present in a particular directory and to send an email if any new entry exists.I had a crontab to run the script for every 5 min. Below...
878
Posted By bhas85
Unable to update the string in a file trough case command
Hi All,

my requirement is first search the line and updated stg value with the user input value.

ws.rsp.url=https://rt930.rsp-stg.cb.info53.com/RSP/RAFT^M

stg is not fixed string it may...
846
Posted By bhas85
Hi itkamaraj, Thanks a lot it's working...
Hi itkamaraj,

Thanks a lot it's working as expected..
846
Posted By bhas85
Replacing partial content of a file.
Hi All,
Please help me in the below issue.I had a file called env.prop.In that i need to change service.url.If i select chocie 2.

it should come as...
1,682
Posted By bhas85
Thanks a lot Scrutinizer.It's working as...
Thanks a lot Scrutinizer.It's working as expected..
1,682
Posted By bhas85
1)I am using AIX operating system. 2) I am...
1)I am using AIX operating system.
2) I am using bash shell
3)Entered value is ib or eb or atm then it should mv properties environment.properties else it should not exit from the script. It...
1,682
Posted By bhas85
Problem if statement
echo "Enter the variable: " "
read var1
echo " "
for i in ib eb atm
do
if [ $var1 = $i ]; then
mv properties environment.properties
break
else
echo "No changes to $var1 "
fi
done

...
1,774
Posted By bhas85
Hi Scrutinizer, If i want save the modified...
Hi Scrutinizer,

If i want save the modified file into to another file i.e file1.txt.What should i do.

for var in i j kdo read $var eval $var=\${$var#.} eval $var=\${$var%/*}/done < file
1,774
Posted By bhas85
Thanks alot to every one.
Every example given are working as expected..Once again thanks to every one for helping me..
1,774
Posted By bhas85
Hi rbatte1, My find command will give this...
Hi rbatte1,

My find command will give this output.Can we take it in variable and can split it.Is it possible to do it..

find . -name "HostIntegration.properties" -o -name...
1,774
Posted By bhas85
Hi rbatte1, Thanks for your reply.I tried...
Hi rbatte1,

Thanks for your reply.I tried to remove the last and first content in afile.But no luck.Below is the code which i tried so far.


cat temp.txt|awk -v skipstart=1 -v skipend=1...
1,774
Posted By bhas85
Removing last and first characters in a file
bash-3.00$ cat temp.txt
./a/REA01/ces1/apps/ces_ces1_init3_aa.ear/ces.war/WEB-INF/classes/reds/common/environment.properties...
2,736
Posted By bhas85
Thanks a lot Cero.It's working fine to me.. ...
Thanks a lot Cero.It's working fine to me..

---------- Post updated at 10:17 AM ---------- Previous update was at 10:16 AM ----------

Thanks for your valuable information Rudic.
2,736
Posted By bhas85
Select command going to infinite loop after running the script
cd /opt/et/WAS/apps/8.0
find . -name "HostIntegration.properties" -o -name "HostSocket.properties" -o -name "environment.properties" 2> /dev/null | awk -F '[//]' '{print $4}'|awk '!x[$0]++' |...
Showing results 1 to 25 of 48

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