03-01-2013
Pls be aware that the indenting chars need to be <TAB>s in the first case! cf. man bash.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi People,
I need some Help to write a unix script that asks for a sentence to be typed out then with the sentence. Counts the number of spaces within the sentence and then echo's out "The Number Of Spaces In The Sentence is 4" as a example
Thanks
Danielle (12 Replies)
Discussion started by: charlie101208
12 Replies
2. Shell Programming and Scripting
echo "please enter ur choice..
1. Make a file.
2. Display contents
3. Copy the file
4. Rename the file
5. Delete the file
6. Exit"
read choice
case $choice in
1 ) echo enter the file name
read fname
if
then
echo... (2 Replies)
Discussion started by: gotam
2 Replies
3. Shell Programming and Scripting
I have the following script:
For catching errors like:
But the regular expression ERROR*memory inside case doesn't seem to be working.
The output of bash -x scriptname is:
Please help (5 Replies)
Discussion started by: proactiveaditya
5 Replies
4. Shell Programming and Scripting
I tried this:
for region in 'raj' 'kt' 'kol' 'krl' 'chn' 'dl' 'hr' 'bih' 'ap'
do
sqlplus -s huw$region/`echo $region`huw#321@huw$region<<!
set serveroutput on
begin
select count(*) from tcd_preferred_cust_201109
end;
/
exit;
done
but the error shows like:
Syntax error at line 4 :... (1 Reply)
Discussion started by: deepakprasad29@
1 Replies
5. Programming
Hi,
I have an SQL query that returns a substring of a field and I want to work a case statement on it, but either I get a syntax error or in it's current manifestation the case is ignored all together.
select distinct dbms_lob.substr(msg_body,1,4) as networkId,
A_STATUS, count(*) from... (1 Reply)
Discussion started by: chris01010
1 Replies
6. Shell Programming and Scripting
hi,
i have a requirement where i need to connect sqlplus from unix and i am able to do so by following command:
cust_count=`sqlplus -s $ORACLE_USER/$ORACLE_PASS@$ORACLE_SID << EOF
set pagesize 0
set feedback off
set verify off
... (1 Reply)
Discussion started by: lovelysethii
1 Replies
7. Shell Programming and Scripting
Hi ALL,
I am receving a "strange" error using a nested if within an sql operation inside:
./dom.ksh: syntax error at line 80 : `then' unmatched
This is all my script code: in bold the step receiving the error.
Any help would really aprrecieted ......!
**** I have tried all the... (2 Replies)
Discussion started by: AndreaCecco
2 Replies
8. Shell Programming and Scripting
Hi,
facing an issue while calling sqlplus inside shell script. It for some reason goes to tmp file to write something and i get error as permission denied as i dont have access there.
ANy idea why sqlplus writes in /tmp and how to change or stop this ? (2 Replies)
Discussion started by: rushikeshs
2 Replies
9. Shell Programming and Scripting
Hi all,
I'm using below code
processId=`sqlplus -s ${sysuser}/${syspwd} <<CHK_PROCESS
whenever sqlerror exit sql.sqlcode;
set head off feedback off echo off pages 0
SELECT PROCESS_ID FROM LSHADMIN.DATA_DOMAIN WHERE DOMAIN_NAME = '${tabname}'
... (8 Replies)
Discussion started by: Pratiksha Mehra
8 Replies
LEARN ABOUT DEBIAN
term::readline::zoid::emacs
Term::ReadLine::Zoid::Emacs(3pm) User Contributed Perl Documentation Term::ReadLine::Zoid::Emacs(3pm)
NAME
Term::ReadLine::Zoid::Emacs - a readline emacs mode
SYNOPSIS
This class is used as a mode under Term::ReadLine::Zoid, see there for usage details.
DESCRIPTION
This mode provides some emacs key-bindings, taking the bash(1) implementation as a reference.
This module also provides a 'emac_multiline' key map.
KEY MAPPING
These bindings are additional to those in Term::ReadLine::Zoid which already contains some emacs key bindings.
escape, ^[ (prefix_meta)
meta-f (forward_word)
meta-b (backward_word)
^X^V (switch_mode_command)
Enter (vi) command mode. Taken from zsh(1).
^V, ^Q (quoted_insert)
Insert next key literally, ignoring any key-bindings.
WARNING: control or escape chars in the editline can cause unexpected results
TODO
Get count args right (see bash reference)
A lot more bindings
A emacs multiline mode
AUTHOR
Jaap Karssenberg (Pardus) <pardus@cpan.org>
Copyright (c) 2004 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
SEE ALSO
Term::ReadLine::Zoid
perl v5.8.7 2005-08-07 Term::ReadLine::Zoid::Emacs(3pm)