I want to write a script which will check the arguments and if there is a single space(if 2 more more space in a row , then do not touch), replace it with _ and then gather the argument
so, program will be ran
./programname hi hello hi usa now hello hello
so, inside of program,... (7 Replies)
Hello All,
I have a file with thousands of records:
eg:
|000222|123456987|||||||AARONSON| JOHN P|||PRIMARY |P
|000111|567894521|||||||ATHENS| WILLIAM k|||AAAA|L
Expected:
|000222|123456987|||||||AARONSON| JOHN |P|||PRIMARY |P
|000111|567894521|||||||ATHENS| WILLIAM |k|||AAAA|L
I... (6 Replies)
hi,
I have a file that is space separated at all columns. Basically what I want to do is replace all the space separations with column separations.
Thanks
kylle (1 Reply)
I would like to replace the value of * (which might have one or more whitespace(s) before and after *) using sed command in aix.
Eg: Var='Hi I am there *
Desired output: Hi I am there* (1 Reply)
hi
i want to replace spaces by comma
my file is
ADD 16428 170 160 3 WNPG 204 941 No 204802
ADD 16428 170 160 3 WNPG 204 941 No 204803
ADD 16428 170 160 3 WNPG 204 941 No 204804
ADD... (9 Replies)
I'm trying to replace a string "99999999'" with the blank where ever is there in the file. Could you please help in unix scripting.
Thank You. (6 Replies)
Hi Masters ,
I have a file whose header is like
HDRCZECM8CZCM000000881 SVR00120100401160828+020020100401160828+0200CZK
There is a space between 1 and S ,my req is to chng the space to T
I tried echo `head -1 CDCZECM8CZCM000000881` | sed 's/ /T/'
it works ,but how can I modify in... (5 Replies)
I have a string and want to replace the / with a space.
For example having "SP/FS/RP" I want to get "SP FS RP"
However I am having problems using gsub
set phases = `echo $Aphases | awk '{gsub(///," ")}; {print}'` (5 Replies)
Hello,
I have a situation where I am trying to use Apache's RedirectMatch directive to redirect all users to a HTTPS URL except a single (Linux) user accessing there own webspace. I have found a piece of regular expression code that negates the username:
^((?!andy).)*$but when I try using it... (0 Replies)
Hello,
Am very new to perl , please help me here !!
I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file.
below is the script which i have written so far ,
#!/usr/bin/perl
use LWP::UserAgent;
use... (2 Replies)
Discussion started by: scott_cog
2 Replies
LEARN ABOUT LINUX
dacs_version
DACS_VERSION(8) DACS Web Services Manual DACS_VERSION(8)NAME
dacs_version - display DACS version information
SYNOPSIS
dacs_version [dacsoptions[1]]
DESCRIPTION
This program is part of the DACS suite.
The dacs_version web service displays version information about DACS and other third-party packages that have been compiled into DACS. If
XML output is selected, a document conforming to dacs_version.dtd[2] is returned.
Note
This program is also available as a DACS utility, dacsversion(1)[3]. Because dacs_admin(8)[4] provides the same functionality and more,
dacs_version may be removed in a future release.
OPTIONS
Web Service Arguments
The standard CGI arguments[5] are understood.
DIAGNOSTICS
The program exits 0 if everything was fine, 1 if an error occurred.
SEE ALSO dacs(1)[6]
AUTHOR
Distributed Systems Software (www.dss.ca[7])
COPYING
Copyright2003-2012 Distributed Systems Software. See the LICENSE[8] file that accompanies the distribution for licensing information.
NOTES
1. dacsoptions
http://dacs.dss.ca/man/dacs.1.html#dacsoptions
2. dacs_version.dtd
http://dacs.dss.ca/man/../dtd-xsd/dacs_version.dtd
3. dacsversion(1)
http://dacs.dss.ca/man/dacsversion.1.html
4. dacs_admin(8)
http://dacs.dss.ca/man/dacs_admin.8.html
5. standard CGI arguments
http://dacs.dss.ca/man/dacs.services.8.html#standard_cgi_args
6. dacs(1)
http://dacs.dss.ca/man/dacs.1.html
7. www.dss.ca
http://www.dss.ca
8. LICENSE
http://dacs.dss.ca/man/../misc/LICENSE
DACS 1.4.27b 10/22/2012 DACS_VERSION(8)