09-01-2004
awk '{ print "/dir1/dir2/"$0 }' file > newfile
Cheers
ZB
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to edit a syslinux msg file. I want to precede color codes with control characters. I have tried insert mode, then control v followed by the color code; however, I continue to get " [O " if I type the color code or enter ESC mode. How can I just insert say " ^L " ? (2 Replies)
Discussion started by: cstovall
2 Replies
2. UNIX for Dummies Questions & Answers
guys can anyone tel me how to insert a line in a file(bash) using line number
i wanna insert the line using LINE NUMBER...i know for inserting above or below a perticular line we can use sed a\ or i\....
thanks in advance.... (7 Replies)
Discussion started by: anj
7 Replies
3. Shell Programming and Scripting
I have a file where each line starts with a "update" statement. I want to insert a new line, after each line, with the words "go" in the new line. Can someone help me out with this? (1 Reply)
Discussion started by: ssmallya
1 Replies
4. UNIX for Advanced & Expert Users
Hi
Is there any command where we can insert a line "2|||" before every line starting with "3|"
my input is as follows
1|ETG|12345
3|79.58|||GBP||
1|ETG|12345
3|79.58|||GBP||
1|ETG|12345
2|EN_GB||Electrogalvanize 0.5 m2 ( Renault )
1|ETG|12345
3|88.51|||GBP||
desired output... (10 Replies)
Discussion started by: laxmi131
10 Replies
5. UNIX for Dummies Questions & Answers
How to add control characters at the end of each line in a file?
Can anyone help me with this?
Thanks,
Shobana (2 Replies)
Discussion started by: Shobana_s
2 Replies
6. Shell Programming and Scripting
Friends ,
I have a large file and i need to insert a line after every line.I am actually unaware how to do it.Any help appreciated.
My File
control station *ATM* , qread $OSS.Jul13A.FI01 interval 1 intcount 1
control station *ATM* , qread $OSS.Jul13A.FI02 interval 1 intcount... (4 Replies)
Discussion started by: appu2176
4 Replies
7. UNIX for Dummies Questions & Answers
hi
i have a file that contains the data like this
12345
12453
8990998987
0989876656
12345678
12344
133678999
12345677
i should insert "+" and "-" signs for each line i,e.,
+ 12345
- 12453
+ 8990998987
- 0989876656
+ 12345678
- 12344 (2 Replies)
Discussion started by: anurupa777
2 Replies
8. Shell Programming and Scripting
Hello All,
I have following file contents
cat file
#line=aaaaaa
#line=bbbbbb
#line=cccccc
#line=dddddd
line=eeeeee
#comment=11111
#comment=22222
#comment=33333
#comment=44444
comment=55555
Testing script
Good Luck!
I would like to comment line line=eeeeee and insert a new line... (19 Replies)
Discussion started by: manishdivs
19 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I want ot print a header with new line in the end. I am using echo
like echo "this is header"
I want output like
This is header
$
I tried -e also but it's not working. echo - e
Can anyone help please? (6 Replies)
Discussion started by: dsa
6 Replies
10. UNIX for Beginners Questions & Answers
I would like to insert n number of characters at the beginning of each line that starts with a given character. If possible, I would be most appreciative for a sed or awk solution.
Given the data below, I would like to be able to insert either 125 spaces or 125 "-" at the beginning of every line... (6 Replies)
Discussion started by: jvoot
6 Replies
LEARN ABOUT DEBIAN
declar
DECLAR(3) GENPAT functions DECLAR(3)
NAME
DECLAR, GENPAT Package
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
DECLAR("ident",":nb_space","format",mode,size,option);
PARAMETERS
ident External connector, internal observing points or register's name. For the hierarchical descriptions, the path-name of the inter-
nal observing points or registers must be specified by the syntax : instance1.instance11.name .
nb_space Specify the number of blank space between each group of value associated to the connectors, signals or registers in the output
file. 0,1,2,3,4,5,6,7,8,9 or nothing.
format Specify the format that will be used to represent the value associated to the connectors, signals or registers. X for Hexadeci-
mal, O for Octal and B for Binary.
mode Specify the type of the connectors. IN for Input, OUT for Output, INOUT for Input/Output, SIGNAL for internal observing point,
REGISTER for register. IN, OUT, INOUT, SIGNAL, REGISTER are constants (defines) provided by genpat.
size Specify the size of the bused connectors : empty ("") for the scalar connectors, "nb1" for the numbered connectors, "nb1 TO nb2"
or "(nb1 TO nb2)" (nb1 < nb2), "nb1 DOWNTO nb2" or "(nb1 DOWNTO nb2)" (nb2 < nb1) for the vectors. Where nb1 and nb2 are integer.
option Specify options of the connector. "S" for a spied connector, empty ("") for a normal connector.
DESCRIPTION
Describes a set of connectors, signals or registers of the same format, size and mode.
EXAMPLE
DECLAR("a", ":2", "X", OUT, "3 DOWNTO 0", "S");
describes : a 3, a 2, a 1, a 0
format : Hexadecimal.
mode : Output.
option : Spied connector.
the group is separated of the others with 2 blank spaces.
result :
out a(3 downto 0) X spy ;;;
DECLAR ("toto", ":", "O", INOUT, "7 TO 11", "");
describes : toto 7, toto 8, toto 9, toto 10, toto 11.
format : Octal.
mode : Input/Output.
option : none.
the group is separated of the following with 0 blank space.
result :
inout toto(7 to 11) O ;
DECLAR ("ck", ":2", "B", IN, "", "");
describes : ck.
format : Binary.
mode : Input.
option : none.
the port is separated of the following with 2 blank spaces.
result :
in ck ;;;
DECLAR ("accu.f", ":", "B", SIGNAL, "", "S");
describes : accu.f .
format : Binary.
mode : Signal.
option : Spied connector.
the signal is separated of the following with 0 blank space.
result :
signal accu.f spy ;
DECLAR ("accu.reg", ":1", "B", REGISTER, "(3)", "");
describes : accu.reg .
format : Binary.
mode : Register.
option : none.
the signal is separated of the following with 1 blank space.
result :
register accu.reg(3) ;;;;
WARNING
The DECLAR function from the 4.0 release have a new parameter (option).
SEE ALSO
ARRAY(3), genpat(1), pat(5)
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM
/LIP6 October 1, 1997 DECLAR(3)