10 More Discussions You Might Find Interesting
1. Programming
HI Team
I am using Sybase ASE15.7 version.
Below is the sample column values .
http://abc.lifeline.airs.com/support/
https://xyzbre.lifeline.airs.com/video/
Would like to know how to
Trim http:// and https:// from above list of example
Remove characters after first /
Include only the... (3 Replies)
Discussion started by: Perlbaby
3 Replies
2. Shell Programming and Scripting
Hi,
I need a shell script, which would search the result values from another files.
1)execute " select column1 from table_name" query on the table.
2)Based on the result, need to be grep from .wft files.
could please explain about this.Below is the way i am using.
#!/bin/sh... (4 Replies)
Discussion started by: Rami Reddy
4 Replies
3. UNIX for Dummies Questions & Answers
Can anyone help me in this?
Here is the Secenario.
I need to count the Numerical vaues from the below output
Item processed: 1401
Item processed: 2839
Item processed: 1261
Item processed: 2584
Item processed: 2
Item processed: 988
Item processed: 1
Item processed: 2119
... (3 Replies)
Discussion started by: Padmanabhan
3 Replies
4. Shell Programming and Scripting
HI,
I have a string "NZ-deploy-mode-1.15-Linux.x86_64.rpm"
I want to get the string before -1 ie "NZ-deploy-mode"
Input is "NZ-deploy-mode-1.15-Linux.x86_64.rpm"
expected output is "NZ-deploy-mode"
How can I do that in shell script?
Thanks in advance. (6 Replies)
Discussion started by: Ananthdoss
6 Replies
5. Shell Programming and Scripting
Hi,
I am stuck at comparing a value from database with a space involved.
Condition
if (cust_code != "RAMK" && cust_code != "LML")
{
xxxxxxx
xxxxxxx
xxxxxxx
}
the cust_code is from a table and generally has 4 chars...so in the case of LML it comes with default space at the end.
... (1 Reply)
Discussion started by: ramkiran77
1 Replies
6. Shell Programming and Scripting
Hi,
I'm quite new to scripting, but know a few AWK statements.
I have the following line in my script:
hostname=`echo $file | awk 'BEGIN{FS=OFS="."}{$NF=""; NF--; print}'`
I use this in my script to rename files, which are similar to this:
name.mvkf.mkvfm.mkfvm.1
To the... (4 Replies)
Discussion started by: TauntaunHerder
4 Replies
7. Shell Programming and Scripting
I am reading a string like $/folder1/folder2/filename from a file
And I am storing it in a variable say $path.
I want to store the path within single quotes in order to use the path within a command.
if i set like path="'"$path"'"
echo $path
It is printing like ' $/folder1/folder2/filename'... (6 Replies)
Discussion started by: Shri123
6 Replies
8. Shell Programming and Scripting
FOLKS ,
i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one.
thanks...
Venu (3 Replies)
Discussion started by: venu
3 Replies
9. Programming
I am getting back on the C++ programming after many years away. I recently received an SDK that has code like this where numeric values end in 'U'. What does this mean?
if ((ptr % 16U) == 0U)
return buffer; (3 Replies)
Discussion started by: sneakyimp
3 Replies
10. Shell Programming and Scripting
All
I want to reverse and trim a string using UNIX shell scripts.Iam using Bourne shells. Can you help me? Thanx in advance
Regards
Deepak (5 Replies)
Discussion started by: DeepakXavier
5 Replies