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)
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)
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
Temp.txt
-----------------
100,234,M1234
400,234,K1734
300,345,T3456
----------------
So the modified file output should... (4 Replies)
Hello
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
Example :
xyz_20091108_22142365.gzip
i need to remove the... (5 Replies)
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)
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)
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)
Hi,
I wish to grep everything before the last "/bin" in the following string
/opt/app/bin/app1/jdk150_07/bin/IA64N/java
Desired output: "/opt/app/bin/app1/jdk150_07"
Kindly help ... (2 Replies)
Discussion started by: mohtashims
2 Replies
LEARN ABOUT DEBIAN
felix-framework
FELIX(1) User Commands FELIX(1)NAME
felix-framework - command line Felix OSGi Framework launcher
SYNOPSIS
felix-framework [-b <bundle-deploy-dir>] [<bundle-cache-dir>]
DESCRIPTION
felix-framework provide a way to start Apache Felix OSGi Framework from command line. After startup, it provide some simple commands to
help management of OSGi bundle.
OPTIONS -b bundle-deploy-dir
The Felix launcher deploys all bundles in the auto-deploy directory into the framework instance during startup. By default, the
auto-deploy directory is /usr/share/felix-framework/bundle/ Specifying an auto-deploy directory replaces the default directory, it
does not augment it.
bundle-cache-dir
path you want to use as the bundle cache. If you specify a relative cache path, then it will be treated as relative to ~/.felix/ By
default, felix-framework will use ~/.felix/felix-cache/
FILES
/etc/felix-framework/config.properties
The system wide configuration file for Felix Framework. See <URL:http://felix.apache.org/site/apache-felix-framework-configuration-
properties.html> for further details.
FILES
~/.felix/
Default user cache directory for OSGi bundle information.
AUTHOR
Damien Raude-Morvan <drazzib@debian.org>
SEE ALSO
<URL:http://felix.apache.org/site/apache-felix-framework-usage-documentation.html>
Felix November 2011 FELIX(1)