10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In this example function below, I cannot figure out what certain parts mean.
if ! echo $PATHwhat is "if !"?
(^|:)$1($|:) What is ^|: and$|:?
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if ; then
PATH=$PATH:$1
else... (3 Replies)
Discussion started by: MemberName
3 Replies
2. Shell Programming and Scripting
Hi,
I am new to shell scripting and i need to write a automation script to execute sql files. I need to check the table if it is there in system tables and need to write a function to call the .sql files.
For ex. I have a.sql,b.sql,c.sql files, where the sql file contains DELETE and INSERT... (1 Reply)
Discussion started by: Samah
1 Replies
3. Shell Programming and Scripting
I need to create a script to change a file depending of 3 conditions using a target as parameter...
first condition
<chamada>
<numeroTerminalOriginador>CALLER</numeroTerminalOriginador>
<imeiOriginador></imeiOriginador>
<cgiPrimeiraErbOriginador></cgiPrimeiraErbOriginador>... (2 Replies)
Discussion started by: poulis
2 Replies
4. Shell Programming and Scripting
Hi Guys,
i'm new to scripting, please help me to write the script.
Purpose: To write a simple addition program and to mail the output result.
Script:
#!/bin/bash
echo "entr numbers";
read n1;
read n2;
answer=$(($n1+$n2));
echo $answer > mail -s "output" karthic324n@gmail.com;
... (4 Replies)
Discussion started by: Karthick N
4 Replies
5. Shell Programming and Scripting
Hi I have a function :
Make_Report()
{
trx_report=`sqlplus -s $conn_str << @@
set echo off;
set pages 0;
set feedback off;
set verify off;
select srv_trx_s_no,... (1 Reply)
Discussion started by: neeraj617
1 Replies
6. Shell Programming and Scripting
Hello, I have made a Linux Shell Script that downloads 6 files from the Internet and then deletes them. Now i want to use the function "/usr/bin/time" and "bc" to calculate how long the avergate run time for the shell script is. I therefore need to do it 100 times. My shell script code is below:
... (6 Replies)
Discussion started by: solo2
6 Replies
7. Shell Programming and Scripting
Hi,
In one of my scripts, I am using sed to do an expression replacement. The code in the script is as under
sed "s|MY_INP_Lab=""|MY_INP_Lab="${2}"|" file1, where $2=xyz_abc_mbk
The EXPECTED output is in file1, all the instances ofMY_INP_Lab="" shall be replaced by... (2 Replies)
Discussion started by: vivekmattar
2 Replies
8. Shell Programming and Scripting
input
buff_1 abc satya_1
pvr_1
buff_2 def satya_1
pvr_1
buff_3 ghi satya_1
pvr_1
buff_4 jkl satya_1
pvr_1
required out put
buff_1 abc satya_1
pvr_1 abc satya_1
buff_2 def satya_1
pvr_1 def satya_1
buff_3 ghi satya_1
pvr_1 ghi satya_1 (6 Replies)
Discussion started by: pvr_satya
6 Replies
9. Shell Programming and Scripting
Greetings to all.I am new to the forum as well as to UNIX as well.I have a jsp file which has the following
selectedStartMonth = request.getParameter( "startMonth" );
selectedStartDay = request.getParameter( "startDay" );
selectedStartYear = request.getParameter( "startYear" );... (3 Replies)
Discussion started by: 20033716
3 Replies
10. Shell Programming and Scripting
Hi,
I have a script abc.sql which contains a word 'timestamp'.
I have another script xyz.txt genrated everyweek, which has a new timestamp value every week.
How do I replace the word 'timestamp' in script abc.sql with the value mentioned in the script xyz.txt, so that I can run the script... (3 Replies)
Discussion started by: kaushys
3 Replies