10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wish to replace "\\n" with a single white space.
The below does the job on command-line:
$ echo '/fin/app/scripts\\n/fin/app/01/sql' | sed -e 's#\\\\n# #g';
/fin/app/scripts /fin/app/01/sql
However, when i have the same code to a shell script it is not able to get me the same output:... (8 Replies)
Discussion started by: mohtashims
8 Replies
2. Shell Programming and Scripting
Hi All,
We have a requirement to Integrate Cyber-Ark with Informatica .
Basically cyberark will contain the username and password for Database.
First step will be
1)In shell Script run curl command calling cyber-Ark RESTAPI requesting the credentials and store the secret in a variable.
... (0 Replies)
Discussion started by: Praveena9102
0 Replies
3. Shell Programming and Scripting
I have a code:
if
then#{ process daily files
for file in *_${Today}*.csv *_${Today}*.txt
do
if ||
then
echo "This file will be processed in separate script"
continue
fi
if ;then
... (2 Replies)
Discussion started by: digioleg54
2 Replies
4. Shell Programming and Scripting
Hi,
I'm facing issues while trying to run a sample program on Linux.
If I try to run the script using the command "sh <filename.prog>", it doesn't work. But, if I try to execute it using the command "ksh <filename.prog>", it works fine.
Even ". ./filename.prog" works fine.
Can you... (6 Replies)
Discussion started by: venkatesh17
6 Replies
5. Shell Programming and Scripting
Hi
I am a beginner in UNIX and shell scripting and i have a requirement as stated below,
requirement
Login to a unix server 1
1. connect to a database mysql -uUsername -pPassword
2. Select a Schema : "Use Schemaname1"
3. query for a particular record
... (2 Replies)
Discussion started by: Hamdul
2 Replies
6. Shell Programming and Scripting
Hi all,
Here is my scenario..
i need to get dates from an existing autosys calendar and compare it with current date with in a unix shell script.
Please help me out and give me an approach to handle this.......
the general autosys calendar command used is autocal_asc ,but this is... (1 Reply)
Discussion started by: shrik12345
1 Replies
7. Shell Programming and Scripting
Hello,
Please i'd like to run command in a script shell , how can i do ?
here my commands :
cd blcr-build // run command in this rep
sudo insmod ./blcr_imports/kbuild/blcr_imports.ko //root
sudo insmod ./cr_module/kbuild/blcr.ko //root
Thank you. (1 Reply)
Discussion started by: chercheur857
1 Replies
8. Shell Programming and Scripting
Hi,
I need to compare two versions values and report only true or false depending on their difference result.
like -
echo $(echo "1.8 >= 2.0" | bc)
0
echo $(echo "2.0 >= 2.0" | bc)
1
but my task is to compare values like -
echo $(echo "1.9.1 >= 2.0" | bc)
(standard_in) 1: syntax... (3 Replies)
Discussion started by: abhitanshu
3 Replies
9. Shell Programming and Scripting
Hi,
I need to run a script whenever the Cron file is modified.
The requirement is whenever a user modifies the cron file, the script should run automatically.
Can you please provide your inputs ? (5 Replies)
Discussion started by: harneet2004us
5 Replies
10. Shell Programming and Scripting
Hi. Thanks for any help with this. I'm not new to programming but I am new to shell programming. I need a script that will
1. execute 'df -k' and return the volume names with specific text
2. surround each line of the above results in opening and closing xml tags
3. insert the results of step... (5 Replies)
Discussion started by: littlejon
5 Replies