10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the kornshell you can get the length of a string with
$ x=abc
$ print ${#x}
3
If the current locale is a multibyte locale, like de_AT.UTF-8, you get the length of the string in bytes, not characters:
$ x=für
$ print ${#x}
4
Is there an easy way to get the length of a... (8 Replies)
Discussion started by: hergp
8 Replies
2. Shell Programming and Scripting
I have a script right now that I run a command which outputs just one word to a file. Well I need to grab that value and use it in another line of code so...
touch oraclesid.txt
echo $ORACLE_SID > oraclesid.txt
#grab that value
sqlplus v500/v500@<value>
how do I grab that value from the... (6 Replies)
Discussion started by: Blogger11
6 Replies
3. Shell Programming and Scripting
HI,
Requirement: I need to pass space between argument value for the paramter "GPG_PUBLIC_UID" but whenever i use single quotes or double quotes while supplying value for the arguments to the script, i see the value of the field "GPG_PUBLIC_UID" is getting splitted and my script fails to... (6 Replies)
Discussion started by: reachaysh
6 Replies
4. Shell Programming and Scripting
Hello Forum Memebers,
I have file with exension of .shsrc ie(startA.shsrc) .while iam trying to make ,its getting Ksh not found.
file:startA.shsrc
error:KSH not found
the content about shell declaration in the korn shell is below.
... (3 Replies)
Discussion started by: rajkumar_g
3 Replies
5. Shell Programming and Scripting
Hi,
I'm a novice at programming and need some help with a kornshell script I've been writting.
I have an inputdirectory with all my .shp files. In my input directory the shapefiles are named XXXX_original.shp, XXXX_UPDATE.shp ect.
In my .ksh script I have created a for loop which... (2 Replies)
Discussion started by: beery
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All
can anyone help me with this, Im new to kornshell scripting and is trying to get the next weekday to a variable:
strDate=%date '+%Y%m%d' // YYYYMMDD
strNewDate= :confused:
// assuming that current date is 20050812 (friday) then strNewDate will get 20050815 (monday) or if... (1 Reply)
Discussion started by: rs_f01
1 Replies
7. Shell Programming and Scripting
I am trying to write a Kornshell function that takes a string parameter which represents a filename or directory name. The function checks to see if there are any spaces in the filename or directory name and then replaces the spaces with an underscore. The returned value is a filename or directory... (1 Reply)
Discussion started by: ckrieger1
1 Replies
8. Shell Programming and Scripting
I need a KornShell script that will, among all the users currently logged on to the system, find a slot of one hour that contains the most number of users. I know how to list all the users currently logged on but how do I do anything with the times that are listed? Please help, thanks. (1 Reply)
Discussion started by: ckrieger1
1 Replies
9. Programming
Hello,
I'm currently doing some programming using the Kornshell environment. I have just been on a Unix course where our instructor gave us some coding examples. I am using one of these examples to solve a few problems.
However, the code examples use a function called 'convdate' to convert a... (10 Replies)
Discussion started by: nezster
10 Replies
10. UNIX for Dummies Questions & Answers
I've been asked to upgrade from Kornshell 88 to Kornshell 93 on a Solaris 7 box. Since my experience with Unix is limited can anyone point me in the right direction? Specifically, where can I get the files that I need to do the upgrade? Thanks. (1 Reply)
Discussion started by: Ask Me
1 Replies