10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Discussion started by: dev123
0 Replies
2. Shell Programming and Scripting
hi all i need to add the prinf statement in awk command for the converted comma separated output....
below is my code :
Code Credits :RudiC
awk -F, 'NF==2 {next}
{ITM=$1
AMT=$2+0
CNT=$3+0
TOTA+=$2
... (4 Replies)
Discussion started by: hemanthsaikumar
4 Replies
3. Shell Programming and Scripting
Hi,
I am new to expect script and I am having difficulty in adding an if statement into a expect FTP login script. Here is the code:
#!/usr/local/bin/expect -f
set FTP_SITE
set FTP_USER
set FTP_PASS
set FTP_FILE
spawn ftp
match_max 100000
expect -exact "ftp> "
send -- "open... (1 Reply)
Discussion started by: jrcai
1 Replies
4. Linux
I would like to add ^M (CTRL V CTRL M) to all lines of the file.
This is easy using unix2dos command in SunOS,
unix2dos commands appends ^M for all the lines in SUnOS
but I dont see the same beahaviou in Linux.
My files on Linu'x to be added with ^M at the end of each line.
is there any... (3 Replies)
Discussion started by: LinuxLearner
3 Replies
5. Linux
Ok, so I have this script that was provided to me by one of the posters on this site.
This script seems to be perfect. However, since this is a telnet script, i need to add an if then statement to it but dont know how to do it.
What i want to do is to have this script spit out a certain... (3 Replies)
Discussion started by: SkySmart
3 Replies
6. Shell Programming and Scripting
Hi All,
I am using Unix ksh script.
I need to insert values to a table using the o/p from a slelect statement.
Can anybody Help!
My script looks like tihs.
---`sqlplus -s username/password@SID << EOF
set heading off
set feedback off
set pages 0
insert into ${TB_NAME}_D... (2 Replies)
Discussion started by: nkosaraju
2 Replies
7. Shell Programming and Scripting
In my ksh script, if the conditions of a if statement are true, then do nothing; otherwise, execute some commands.
How do I write the "do nothing" statement in the following example?
Example:
if (( "$x"="1" && "$y"="a" && "$z"="happy" ))
then
do nothing
else
command
command
fi... (3 Replies)
Discussion started by: april
3 Replies
8. Shell Programming and Scripting
I am using expect
I dont know tcl but trying to use a control statement to send requests from an input file - dont know what I am doing to be honest as I dont know tcl and dont use expect too much...
Any help?
See below
Basically I am opening a telnet session to a server which works fine... (2 Replies)
Discussion started by: frustrated1
2 Replies
9. UNIX for Advanced & Expert Users
Hi,
I am very new to Control-M . If anywone know about the global conditions in Control-M. (5 Replies)
Discussion started by: oraclenerd
5 Replies
10. UNIX for Dummies Questions & Answers
I am using a counter on Comcast and I have it working OK. What I need to do is to add the width and height of 'counter.gif'. Below is the statement I am using:
&richportal is the counter name on the Comcast Server. EX: w=10px h=10px
<img src="/cgi-bin/counter.gif?&richportal">
Thanks: Barry (0 Replies)
Discussion started by: barrie
0 Replies