02-21-2006
grep command in ksh
Hello?
Is it so strange that no one knows about it?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
#Author : kkodava
#!/usr/bin/ksh
#Use of this program is You can findout the no of days & day of starting and ending dates
#usage no_of_days startdate<yyyymmdd> enddate<yyyymmdd>
syy=`echo $1|cut -c1-4`
smm=`echo $1|cut -c5-6`
sdd=`echo $1|cut -c7-8`
eyy=`echo $2|cut -c1-4`
emm=`echo... (1 Reply)
Discussion started by: krishna
1 Replies
2. Programming
hi..
this is my question:
it is possible transfer parameters from my program written in C to a .ksh script?
how can i do it?
i have a program in C, what is called from a .ksh script, and i need what the C program returns some values (parameters)
please, help me - any idea
thanks
... (2 Replies)
Discussion started by: DebianJ
2 Replies
3. Shell Programming and Scripting
Hi,
I am looking for a way to utilize password when the ksh program is launched.
What's the standard or best way to do it?
Thanks for your help! (5 Replies)
Discussion started by: cin2000
5 Replies
4. Shell Programming and Scripting
Hi all,
Can I invoke a perl script from Ksh script and pass parameters to the perl script.
Please do help me..
thanks
Maha (10 Replies)
Discussion started by: mahalakshmi
10 Replies
5. Shell Programming and Scripting
Hi Guys...is there a way to convert a .ksh script to .C program..? (3 Replies)
Discussion started by: aggars
3 Replies
6. Shell Programming and Scripting
Hi Guys,
We have a java program that basically install updates to an existing software. The java program consist of several screens asking user for choices (please see below for a detailed example)
*** Screen 1 ***
Please choose the operation you want to perform:
1. Install new... (5 Replies)
Discussion started by: maddmaster
5 Replies
7. Shell Programming and Scripting
I have asked this before but I haven't had any luck so far getting this to work. I use RCS(revision control system). When it runs if I pass the value 'unlock' to $3 its reassigned to $unlock. When I run the command (rcs -u'version number' 'filename') ti will ask me 1-(Do you want to break the lock... (5 Replies)
Discussion started by: pjones006
5 Replies
8. Shell Programming and Scripting
Hi,
I have a text file with multiple sql statements in which I have pick only the below select update and delete statements and do print as given below.
All the select,update,delete statements will be as same as ( subquery with ().all statements ending with ; ) the examples given below.
1)... (19 Replies)
Discussion started by: manasa_vs
19 Replies
9. Shell Programming and Scripting
Overview:
I have an AWK program that parses thru a database backup
server log file and outputs ths following parameters
SRNO DATE : TIME SIZE IN(KB) DATABASE NAME DUMP TYPE
1 May 16 2012: 13:30:00 6874 TestDB database
2 May 16 2012: 13:30:44 11462 master database
Problem:
This program has... (5 Replies)
Discussion started by: JolietJake
5 Replies
10. Shell Programming and Scripting
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies