10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wish to grep everything before the last "/bin" in the following string
Desired output: "/opt/app/bin/app1/jdk150_07"
Kindly help ... (2 Replies)
Discussion started by: mohtashims
2. Shell Programming and Scripting
I am stuck at comparing a value from database with a space involved.
if (cust_code != "RAMK" && cust_code != "LML")
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
3. 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"'"
It is printing like ' $/folder1/folder2/filename'... (6 Replies)
Discussion started by: Shri123
4. Shell Programming and Scripting
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.
Venu (3 Replies)
Discussion started by: venu
5. Shell Programming and Scripting
I am currently working on a shell script which actually needs to pull some file
from a server ,
The filenames will have the extension with date/time stamp , i need to trim that and name it to proper format
i need to remove the... (5 Replies)
Discussion started by: ranga27
6. Shell Programming and Scripting
To trim 3rd field in for all the lines of a file and replace the modified string in that particular field.
For example i have a file called Temp.txt having content
So the modified file output should... (4 Replies)
Discussion started by: rpadhi
I am coding a C program to read a plain text file. There are a lot of blank fields or a string with white spaces. I want to know is there such a function called trim() in C to clean the white space around a string? Or some other way can do this efficiently? Thanks. (18 Replies)
Discussion started by: hxm1303
8. UNIX for Advanced & Expert Users
am get a value like ' 15' in a variable
what is the easiest method i can follow to strip 15 out (3 Replies)
Discussion started by: anumkoshy
9. UNIX for Dummies Questions & Answers
I would like to know how to trim leading zero only in certain column of of a string, example:
hdhshdhdhd000012mmmm0002abc <===== before
hdhshdhdhd 12mmmm 2abc <===== after
Thanks for your help. (2 Replies)
Discussion started by: dngo
10. Shell Programming and Scripting
I want to reverse and trim a string using UNIX shell scripts.Iam using Bourne shells. Can you help me? Thanx in advance
Deepak (5 Replies)
Discussion started by: DeepakXavier