02-09-2019
@Scrutinizer--both perfect, thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to edit a huge script file using sed. How can I add the new lines symbols in the red colored places?
sed -e "s/test -z "$x"/if test -z "$x" then echo -1; \n else \n/g" (1 Reply)
Discussion started by: gogogo
1 Replies
2. Shell Programming and Scripting
Hi all,
I need your help.
For example I have string in file.txt:
-x -a /tmp/dbarchive_NSS_20081204 -f 900 -l 1 2008/12/04 2008/12/04
So, I need to replace symbols from (for e.g.) position 26 till 33 with symbols which I have in file replace.txt
And I have no idea how to do it.
If... (1 Reply)
Discussion started by: nypreH
1 Replies
3. Shell Programming and Scripting
Hi, I would like to know how could I remove accentes and the symbols: º and ª of a text file with sed. Whis this command doesn't works :-( sed "s/í/i/g" filename Many thanks and sorry for my english! (7 Replies)
Discussion started by: mierdatuti
7 Replies
4. Shell Programming and Scripting
i have a file like this
1111_2222#$#$dudgfdk
11111111_343434#$#$334
1111_22222#43445667
i want to remove all those charachetrs from #
how can i do this
Thank in advance
Saravanan (4 Replies)
Discussion started by: saravanan71184
4 Replies
5. Shell Programming and Scripting
Hi guys,
I have a txt file full of funny symbols like the copyright symbol and other funny ones that get in the way when trying to use sed. For example, not sure if you can read this but I have a line that looks like this:
24(9):995Â*1001 DOI: 10.1007/s11606-009-1053-2 ©
When I'm using... (1 Reply)
Discussion started by: joshdg
1 Replies
6. Shell Programming and Scripting
I have a XML file given as below:
"<ProductUOMAlternativeDetails>
<removetag>
<UOMCode>EA</UOMCode>
<numeratorForConversionToBaseUOM>1</numeratorForConversionToBaseUOM>
<denominatorForConversionToBaseUOM>1</denominatorForConversionToBaseUOM>
<length>0.59</length>
<width>0.96</width> ... (3 Replies)
Discussion started by: vikingh
3 Replies
7. Shell Programming and Scripting
I have file like below
Hi iam author <br>joseph</br> in france.
I live in my home <br></br> but no food.
I will play footbal <br></br> but i wont play cricket.
I will read all the books <br>all fiction stories</br> i hate horror stories.
I want output like below
Hi iam author... (3 Replies)
Discussion started by: vinothsekark
3 Replies
8. Shell Programming and Scripting
hi,
i need to remove the extra spaces in the filed.
Sample:
abc~bd ~bkd123 .. 1space
abc~badf ~bakdsf123 .. 2space
abc~bqed ~bakuowe .. 3space
output:
abc~bd ~bkd123 .. 1space
abc~badf~bakdsf123 .. 2space
abc~bqed~bakuowe .. 3space
i used the following command, (2 Replies)
Discussion started by: anshaa
2 Replies
9. Shell Programming and Scripting
hi,
i need to remove the extra spaces in the 2nd field.
Sample:
abc|bd |bkd123 .. 1space
abc|badf |bakdsf123 .. 2space
abc|bqe |bakuowe .. 3space
Output:
abc|bd|bkd123
abc|badf|bakdsf123
abc|bqe|bakuowe
i used the following command, (9 Replies)
Discussion started by: anshaa
9 Replies
10. UNIX for Dummies Questions & Answers
Hi I am trying to remove all the symbols in a file (testfile1) and using the below command to do that. Its not working for me. Can you help me on what is wrong with below script?
I want to retain only alphabets in a file and remove all the symbols like *:.+= etc
sed 's/^.//g' testfile1 > testfile2 (4 Replies)
Discussion started by: sandeepcm
4 Replies
IAC(1) PolyORB documentation IAC(1)
NAME
iac - PolyORB's IDL-to-Ada compiler
SYNOPSIS
iac opts file [-cppargs args]
DESCRIPTION
iac is an IDL-to-Ada compiler, compliant with version 1.2 of the "Ada Language Mapping Specification" produced by the OMG.
OPTIONS
iac accepts the following options:
-E Preprocess only. -k Keep temporary files.
-p Produce source on standard output.
-o DIR Specify output directory.
-dm Generate debug messages when analyzing scopes
-df Dump the frontend tree (the IDL tree)
-cppargs ARGS
Pass ARGS to the C++ preprocessor.
-I dir Shortcut for -cppargs -I dir.
-nocpp Do not preprocess input
-<lang> Generate code for a supported language
types Generate a list of all types present in the IDL file
-p Print the list generate
ada Generate Ada source code
-i Generate implementation template.
-c Generate client side code.
-s Generate server side code.
-d Generate delegation package. (defunct)
-ir Generate code for interface repository.(defunct)
-noir Don't generate code for interface repository (default).
-hc Using perfect minimal hash tables in skeletons and minimize CPU time
-hm Using perfect minimal hash tables in skeletons and minimize memory space
-rs Use the SII/SSI to handle requests
-rd Use the DII/DSI to handle requests (default)
-da Dump the Ada tree
-db Generate only the package bodies
-ds Generate only the package specs
-dw Output the withed entities
-dt Output tree warnings
-di Generate code for imported entities
idl Dump parsed IDL file
-b n Base to output integer literal As a default (zero) use base from input
-e Expand IDL Tree
-df Dump IDL Tree (may be used in conjunction with -e to dump the expanded IDL tree)
-di Output IDL code of imported entities (may be used in conjunction with -e to output the expanded IDL code)
EXIT STATUS
iac returns one of the following values upon exit:
0 Successful completion
1 Usage error
2 Illegal IDL specification
AUTHORS
The PolyORB team, polyorb-devel@lists.adacore.com.
SEE ALSO
The PolyORB WWW page, http://libre.adacore.com/polyorb/
PolyORB team April 26, 2007 IAC(1)