Hi,
I have simply made a shell script to convert *.csv to *.xml file. Xml file is required for input to one tool. But i am getting space after last field. How can i remove it.
Shell script is as follows :-
Input file (CSV) is like that
Below is the output :-
I want output as below :-
Last edited by Don Cragun; 03-14-2015 at 05:58 PM..
Reason: Add CODE tags.
Hi,
I have a file like this
(ADD_MONTHS((Substr(Trim(BOTH FROM Translate(Maximum(closeDa
------------------------------------------------------------
2007-06-30 00:00:00
I have a requirement where i need just the date.
When i do: tail -1... (2 Replies)
Hello, I am trying to write a script that will calculate the amount of data remaining in a storage volume. I'm running Tru64 Unix version 5.1B patch kit 6. The script is being run against an AdvFS domain. I am programming in Korn Shell version M-11/16/88f.
The basic idea is that I want to run df... (3 Replies)
I have a string "disk0 with a trailing white space after it" but I want to get rid of this white space from right to left so that I am left with "disk0" only.
Using sed 's/ $//g' doesn't seem to work
Any ideas ?
Thanks (5 Replies)
Hi
I am trying to remove trailing space from a string.
value=${value%% }
It is not working. What might be the issue with the above snippet. (7 Replies)
Platform : RHEL 5.8
I want to end each line of this file with a single quote.
$ cat hello.txt
blueskies
minnie
mickey
gravity
snoopyAt VI editor's command mode, I have used the following command to replace the last character with a single quote.
~
~
~
:%s/$/'/gNow, the lines in the... (10 Replies)
I have some strings such as
ABC1
ABC2
TYFASDD12
They will only have letters and numbers. In each case I want to remove the last digit? The lengths will vary. So a hard coded substr won't work. What do I do?
if it doesn't end in a number, I don't want to remove any characters. (6 Replies)
I have a folder that contains many sub folders and files. This tree has to be backed up to an archive system. According to the tech support, one of the archives is failing to back up due to the possibility of trailing spaces on file and folder names. Therefore, I would like to have a script... (16 Replies)
hi,
I'm trying to calculate IP addresses and their respective calls to our apache Server. The standard format of the input is
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST... (2 Replies)
Discussion started by: busyboy
2 Replies
LEARN ABOUT DEBIAN
radeapclient
RADEAPCLIENT(1) FreeRADIUS Daemon RADEAPCLIENT(1)NAME
radeapclient - send EAP packets to a RADIUS server, calculate responses
SYNOPSIS
radeapclient [-c count] [-d raddb_directory] [-f file] [-h] [-i source_ip] [-q] [-s] [-r retries] [-S file] [-t timeout] [-v] [-x] server
{acct|auth} secret
DESCRIPTION
radeapclient is a radius client program. It can send arbitrary radius packets to a radius server, then shows the reply. Radeapclient dif-
fers from radclient in that if there is an EAP-MD5 challenge, then it will be responded to.
radeapclient is otherwise identical to radclient.
The EAP-Identity attribute, if present is used to construct an EAP Identity message.
The EAP-MD5-Password attribute, if present is used to respond to an MD5 challenge.
No other EAP types are currently supported.
OPTIONS -c count
Send each packet count times.
-d raddb
Set dictionary directory.
-f file
Read packets from file, not stdin.
-r retries
If timeout, retry sending the packet retries times.
-t timeout
Wait timeout seconds before retrying (may be a floating point number).
-h Print usage help information.
-i id Set request id to 'id'. Values may be 0..255
-S file
Read secret from file, not command line.
-q Quiet, do not print anything out.
-s Print out summary information of auth results.
-v Show program version information.
-x Enable debugging mode.
EXAMPLE
A sample session that queries the remote server with an EAP-MD5 challenge.
( echo 'User-Name = "bob"';
echo 'EAP-MD5-Password = "hello"';
echo 'NAS-IP-Address = marajade.sandelman.ottawa.on.c';
echo 'EAP-Code = Response';
echo 'EAP-Id = 210';
echo 'EAP-Type-Identity = "bob";
echo 'Message-Authenticator = 0x00';
echo 'NAS-Port = 0' ) >req.txt
radeapclient -x localhost auth testing123 <req.txt
SEE ALSO radclient(1)AUTHOR
Michael Richardson, <mcr@sandelman.ottawa.on.ca>
08 September 2003 RADEAPCLIENT(1)