10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am running plsql using printf on a shell, but i am getting some strange error, can someone point what exactly am i missing,
$ echo $SHELL
$ printf "
> SET serveroutput ON trimspool on feed off echo off
> p_val number;
> d_val varchar2(10);
> SELECT... (1 Reply)
Discussion started by: kamauv234
2. Shell Programming and Scripting
I need to run a shell script on unix machine from windows 7.
I used the "RSH" command in win XP successfully for this, But on win 7 it is not working.
Can any body tell me how to run RSH on win 7 or any other command for similar use.
I use the command as below
rsh <unix m/c> -l <username>... (1 Reply)
Discussion started by: arup1980
I wrote two shell scripts in UNIX that renames the same file and scheduled them at the same time.
The following are the steps that I followed:-
1. I wrote 2 scripts named s1.sh and s2.sh, both trying to add “exec_” prefix to the name of the files present in a folder i which already don't start... (4 Replies)
Discussion started by: piuli
4. Shell Programming and Scripting
I am attempting to create a fixed length tilde delimited file using printf.
The variables are initialized to fixed length blank spaces
Sometimes the variable might contain values and sometimes they are... (5 Replies)
Discussion started by: angie1234
5. Shell Programming and Scripting
var3=$(echo "$var1" \n "$var2")
var3=$(printf "$var1 \n $var2")
Any way to get
in my $var3 ? (7 Replies)
Discussion started by: dahlia84
6. Shell Programming and Scripting
i have written small script as follows:
printf "%-20s" $name
This gives me strange output. -20s format is applied on both word of string. i.e it displays both word hi and hello in space of 20 length.
I want to display entire string "hi hello" in length of 20 space.
plz... (2 Replies)
Discussion started by: admc123
7. Shell Programming and Scripting
my default profile is using ksh, I tried to write a simple scripts and I had issues, below is my scripts:
$ more if_num.ksh
print -n "Enter two numbers: "
read x y
print "You entered the same number twice."
when I tried to executed the... (6 Replies)
Discussion started by: matthew00
8. Shell Programming and Scripting
I need to make a ksh script with colors, it is possible with printf to combine column and colors ? i seem not working, I think i dont doing the good thing:
printf -n "%-15s %-20s %-20s\n" "\033
the position is ok
Bob... (2 Replies)
Discussion started by: wolfhurt
9. UNIX for Advanced & Expert Users
I have a simple shell script as follows.
FIND_STRING="\( -name 'testfile*.Z' -o -name 'DUMMY_*' \) "
find /tmp -type f $FIND_STRING -print
When I run this with ksh -x testscript, I get the following output.
+ FIND_STRING=\( -name 'testfile*.Z' -o -name... (6 Replies)
Discussion started by: kodermanna
10. Shell Programming and Scripting
I am very confused with my printf command.
Somehow one variable can't line up with others...
newstart2 ="Mon Nov 11 01 00:00:00 2002"
printf "%-20s" $newstart2
Here is the output:
Mon Nov 11
01 00:00:00 2002
It spread out to two lines..
Why? (1 Reply)
Discussion started by: cin2000