ADSM-L

Re: Script to cancel certain sessions

2001-11-29 10:40:11
Subject: Re: Script to cancel certain sessions
From: "Warren, Matthew James" <matthewjames.warren AT EDS DOT COM>
Date: Thu, 29 Nov 2001 15:36:58 -0000
It is possible to remove single characters or sections from a string using
SED too; I tend to do this,
 
If you have a sessnum of 1,483
 
 
sessnum=$(echo ${sessnum} | sed -e 's/,//g')
 
 
will remove the ','
 
The sed command in that line substitutes everything after the first '/' with
everything after the second '/' upto the third '/'
 
 
Matt.

<Prev in Thread] Current Thread [Next in Thread>