Search Results

Search: Posts Made By: BeefStu
955
Posted By BeefStu
Parsing values
can anybody tell me why this code does not work?



cat x1.ksh

#!/bin/ksh
set -x
echo "|$#|"
while [ $# -gt 0 ]
do
case $1 in
--+([kK])
shift
K=$1
...
16,389
Posted By BeefStu
You need a space between the variable and the...
You need a space between the variable and the bracket
3,359
Posted By BeefStu
Invoke sqlplus and play with these parameters ...
Invoke sqlplus and play with these parameters



set long ...
set longchunksize ...
set linesize ...





Hope this helps
10,405
Posted By BeefStu
If you have execute permissions on the script you...
If you have execute permissions on the script you should be able to run it.
It looks like your missing the first "/" in your path.. Try
Directory="/home/users/work/"
1,617
Posted By BeefStu
You can call your script name anything you like....
You can call your script name anything you like. Ie bla.bla xx ....

Typically the first line in the scirpt is the shabang command, this dictates
what shell you are using.. For the most...
3,071
Posted By BeefStu
Unix provided a nice utilty called nl (number...
Unix provided a nice utilty called nl (number line) see if that could help
you. If not see if this works for you



cat xx.data

red
hello world
green
blue ribbon winner


cat...
2,881
Posted By BeefStu
The find command offers a lot options (files more...
The find command offers a lot options (files more than N days old, size
greater than N, different starting places). Depending what your needs
are you can use this in combination with the rm...
2,190
Posted By BeefStu
you can cd to the directory you like and do...
you can cd to the directory you like and do something like this:

find . -type -print

The problem is that find walks down the directories, therefore if you have
a directory in your path you...
8,435
Posted By BeefStu
If you don't know much about code, I'm not sure...
If you don't know much about code, I'm not sure how helpful this forum will
be to you.

Having said that, you can play around with this and adjust MINIMUM_LEN
and MAXIMUM_LEN to suit your...
1,986
Posted By BeefStu
Within in Oracle you can do the following: ...
Within in Oracle you can do the following:



column username, format a20 head 'User'
column Now format a20 head "Now"
column Expire_Date format a20 head "Expire Date"
column Days format...
1,721
Posted By BeefStu
This sounds a lot like home work therefore I will...
This sounds a lot like home work therefore I will get you started and you
can resarch the rest.

cat /tmp/xx
hello


This command will change the word hello to bye in every occurance
in...
30,879
Posted By BeefStu
The problem is you are testing with -eq which...
The problem is you are testing with -eq which denotes a number.

This works in ksh.

#!/bin/ksh

func1()
{
var="574E47303030303030303030303030303030303135313937"
echo "$var"
}
...
3,333
Posted By BeefStu
Never been a big fan of getopt in KSH, its very...
Never been a big fan of getopt in KSH, its very limited. What happens if
you have an option that you want to use the same letter for?

For example, db_id and db_password. You can't use -d for...
15,242
Posted By BeefStu
#!/bin/ksh curdir=`pwd` n20=$curdir/n20 ...
#!/bin/ksh
curdir=`pwd`
n20=$curdir/n20
msat=$curdir/n20/msat
if [ ! -d "$n20" ]
then
mkdir "$n20"
fi
if [ ! -d $msat ]
then
mkdir $msat
if [ $? -ne -0 ]
then
echo...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy