hi,
im quite new to perl regexp. i have a problem where i want to extract a word from a given string. but the word is unknown, only fact is that it appears as the second word in the string.
Eg.
input string(s) :
char var1 = 'A';
int var2 = 10;
char *ptr;
and what i want to do is... (3 Replies)
hi,I am new to shell script,I have String,like this:
Number of rows exported: 5321
the numbe at end could changing,how can I extract this number and assign it to a variable,then use it later in script.
thanks. (19 Replies)
I am using the following code:
set LASInputFile = `ls *. | head -1`
set COMPLine = `grep -i :COMPANY $LASInputFile`
to extract the following line from my input file:
COMP. XYZ Public Company :COMPANY NAME
I now need to extract the full name of the company which... (15 Replies)
Hi,
I search all forum, but I can not find solutions of my problem :(
I have multiple files (5000 files), inside there is this data :
FILE 1:
1195.921 -898.995 0.750312E-02-0.497526E-02 0.195382E-05 0.609417E-05
-2021.287 1305.479-0.819754E-02 0.107572E-01 0.313018E-05 0.885066E-05
... (15 Replies)
I am working with the ksh shell in HP UNIX and I am attempting to extract a word, beginning with a particular string and ending at the first space. for example I want to extract the word or string MS_RECENT_ACTIVITY from the following string
" This has been entered in MS_RECENT_ACTIVITY the... (2 Replies)
I have to extract number part (Date and timestamp part ) from the following 3 strings
AB_XYZA_20130930183017.log
AB_DY_XYZA_20130930183017.log
AB_GZU_20130930183017.log
Output should be
20130930183017
Please help me to get the string like above
Thanks (2 Replies)
Hi All,
I have a word and from that word would like to search for certain set of string, is there any command to do so ?
EX :
Components
from the above word, would like to search for strings set and extract the search string and then do if stmt...
pon
nen
ent
Com
say... (2 Replies)
Hi
I am on Sun os. I have data in the below format and I need to grab the number out from the string.
O/p needed:
---------- Post updated at 12:39 PM ---------- Previous update was at 12:32 PM ----------
I tried this but I am getting . at the front (14 Replies)
Discussion started by: dsravanam
14 Replies
LEARN ABOUT SUSE
pptpsetup
PPTPSETUP(1) User Contributed Perl Documentation PPTPSETUP(1)NAME
pptpsetup - Point-to-Point Tunneling Protocol setup
SYNOPSIS
pptpsetup --create <TUNNEL> --server <SERVER> [--domain <DOMAIN>]
--username <USERNAME> [--password <PASSWORD>]
[--encrypt] [--start]
pptpsetup --delete <TUNNEL>
DESCRIPTION
PPTP Client is a Linux, FreeBSD, NetBSD and OpenBSD client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP.
This script configures PPTP Client on Linux.
OPTIONS --create TUNNEL create a tunnel named TUNNEL
--delete TUNNEL delete the file /etc/ppp/peers/TUNNEL and any lines from /etc/ppp/chap-secrets that contains "TUNNEL" as a single word
--server SERVER the IP address or host name of the server
--domain DOMAIN the authentication domain name (optional)
--username USERNAME
the username you are to use
--password PASSWORD
the password you are to use. If you don't specify a password, pptpsetup will ask for one.
--encrypt whether encryption is required
--start whether the connection should be started after configuration.
AUTHOR
Nelson Ferraz <nferraz at gmail.com>, based on James Cameron's PPTP Client Debian HOWTO.
SEE ALSO
PPTP Client Debian HOWTO
http://pptpclient.sourceforge.net/howto-debian.phtml
PPTP Client Diagnosis HOWTO
http://pptpclient.sourceforge.net/howto-diagnosis.phtml
COPYRIGHT
pptpsetup - Point-to-Point Tunneling Protocol setup
Copyright (C) 2006 Nelson Ferraz
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
perl v5.12.1 2008-05-14 PPTPSETUP(1)