Search Results

Search: Posts Made By: ashima jain
4,312
Posted By ashima jain
Observing error :syntax error in expression
#!/bin/bash

a1="04:29:39 - System health check failed"

i=$1
echo "a $((a$i))"



The script above gives the following error
$113> sh tryt.sh 1
tryt.sh: line 6: 04:29:39 - System health...
8,395
Posted By ashima jain
Its because the function f2 is function I have...
Its because the function f2 is function I have used to display status of the operations going on in function f1.
Can you explain "You can intercept the output and assing it to a variable."
How...
8,395
Posted By ashima jain
Pass return value of a function in background process
Hi,
I have created a function f1 defined in script A.sh .I have called this function in background . But I want to use its return value for another function f2 in script A.sh.
I tried declaring it...
3,870
Posted By ashima jain
I got your point Don. Thanks for explaining that....
I got your point Don. Thanks for explaining that.
However I have seen that if I have to use awk in my shell script. I need to mention it to the system with statement #!/bin/awk -f other wise it...
3,870
Posted By ashima jain
Sorry for the incomplete code. I had sent...
Sorry for the incomplete code. I had sent fragments of my code and hence only awk was present.


#!/bin/bash
#!/bin/expect -f

#set user [lindex $argv 0]
#set pswd [lindex $argv 1]
...
3,870
Posted By ashima jain
Make expect exit the UNIX script in erreneous condition
Hi,
I am writing a menu driven program using shell script. THe script will be collecting data by logging into the other servers and bringing back the data to home server to process it and...
7,347
Posted By ashima jain
awk command not getting executed in shell script
I am able to execute awk command from shell prompt. but the same command is not getting executed when written and run in a bash script

the command from bash cmd prompt.
awk '/world/{for (i=2;...
6,880
Posted By ashima jain
Rudic can you explain !s sed '/{/ !s/^/#/' file
Rudic can you explain !s
sed '/{/ !s/^/#/' file
6,880
Posted By ashima jain
Sorry new to unix.com. Didnt explore much. ...
Sorry new to unix.com. Didnt explore much.
Thanks!!! It resolved the issue.
Can you explain temp$$?
6,880
Posted By ashima jain
Add character to specific columns using sed or awk and make it a permanent change
Hi,

I am writing a shell script where I want that # should be added in all those lines as the first character where the pattern matches.

file has lot of functions defined
a.sh
#!/bin/bash

...
2,126
Posted By ashima jain
Make background process interact with fg process
Hi,
I have written a menu driven shell script in which as per the choice, I run the another script on background.
For eg:
1. get info
2)process info
3)modify info

All the operations have...
Showing results 1 to 11 of 11

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