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 HPUX
dtinfobookdtd
dtinfoBook.dtd(file formats) dtinfoBook.dtd(file formats)
NAME
dtinfoBook.dtd -- dtinfo bookcase document type definition
DESCRIPTION
This is the document type definition for bookcases under dtinfo. You can also find an ASCII file of the dtinfoBook.dtd in
/usr/dt/infolib/%L/SGML/dtinfoBook.dtd.
The bookcase DTD is defined as follows:
<!--
Formal Public Identifier (FPI):
-//X Consortium//DTD DTINFO Bookcase Description//EN
-->
<!-- DTINFO Architectural Forms -->
<!ENTITY % OLAF PUBLIC
"-//X Consortium//ENTITIES DTINFO Architectural Forms//EN"
>
%OLAF;
<!--
Describe the BookCase contents.
-->
<!ELEMENT BookCase - - ( BookcaseName, BookcaseDesc, StyleSheet+, Book+) >
<!ATTLIST BookCase
StyleSheet IDREF #REQUIRED
%DTINFO.Bookcase;
%DTINFO.Style; "attr( StyleSheet )"
>
<!ELEMENT BookcaseName - - ( #PCDATA) >
<!ATTLIST BookcaseName
%DTINFO.BookcaseName;
>
<!ELEMENT BookcaseDesc - - ( #PCDATA) >
<!ATTLIST BookcaseDesc
%DTINFO.BookcaseDesc;
>
<!ELEMENT Book - - ( Title, ShortTitle?, Tab*, TOCFile, File+) >
<!ATTLIST Book
StyleSheet IDREF #IMPLIED
%DTINFO.Book;
%DTINFO.Style; "attr( StyleSheet )"
>
<!ELEMENT Title - - ( #PCDATA) >
<!ATTLIST Title
%DTINFO.BookTitle;
<!ELEMENT ShortTitle - - ( #PCDATA) >
<!ATTLIST ShortTitle
%DTINFO.BookShortTitle;
>
<!ELEMENT Access - O EMPTY >
<!ATTLIST Access
Feature CDATA #REQUIRED
VenCode CDATA #REQUIRED
Version CDATA #REQUIRED
Grouping CDATA #REQUIRED
DefaultSection CDATA #REQUIRED
DemoTerms CDATA #IMPLIED
%DTINFO.BookAccess;
>
<!ELEMENT Tab - - ( #PCDATA) >
<!ATTLIST Tab
TabLoc CDATA #REQUIRED
%DTINFO.BookTab;
%DTINFO.IDREF; "attr( TabLoc )"
>
<!--
Any section within the file can override the style
sheet via a DTD modification.
-->
<!ELEMENT TOCFile - - ( #PCDATA) >
<!ATTLIST TOCFile
>
<!ELEMENT File - - ( #PCDATA) >
<!ATTLIST File
>
<!-- Style Sheet DTD -->
<!ENTITY % StyleSheet.dtd PUBLIC
"-//X Consortium//DTD DTINFO Style Sheet//EN"
>
%StyleSheet.dtd;
SEE ALSO dtinfo(1), DtInfoLib(5), dtinfogen(1), dtinfoStyle.dtd - dtinfoStyledtd(5), dtinfoTOC.dtd - dtinfoTOCdtd(5),
dtinfoBook.dtd(file formats)