10-22-2010
SED programming
Hi Folks,
I have one file which contains the data like below.
gggsdvrwdtydjnnc%vhdskl;jf;whjfuyijfnv,m%jkgsjkfsjkjdlkl%gjksdhfljkfjkj%
I want to replace % to the Line feed. I mean the result should be like below.
gggsdvrwdtydjnnc
vhdskl;jf;whjfuyijfnv,m
jkgsjkfsjkjdlkl
gjksdhfljkfjkj
Can anyone help me how to do this using SED in IBM AIX?
Thanks a lot!!!!
10 More Discussions You Might Find Interesting
1. Programming
i would like advice on the usbject of c programming (in the middle of reading a book on C). could i benefit more if i apply that knowledge in the unix format if i were able to, or would that take the point out of learning C, basically I want to stay away from strying too far away from unix and use... (1 Reply)
Discussion started by: moxxx68
1 Replies
2. Shell Programming and Scripting
Several months ago I found a link that explained the difference between how a Unix Systems Admin would do scripting compared to what a Unix Programmer would do.
It showed a basic script and then show several iterations that explained how the Systems Admin would change it to make it better. I was... (0 Replies)
Discussion started by: BCarlson
0 Replies
3. Shell Programming and Scripting
I am doing the following script in k shell
sed -i 's/FILENAME/$i/g' TEST/test$j.ctl > TEST/control$j.ctl
In the file it replaces $i for all FILENAME, it doesnot replace with the value of i. I put single quotes like below
sed -i 's/FILENAME/'$i'/g' TEST/test$j.ctl > TEST/control$j.ctl
I... (9 Replies)
Discussion started by: toshidas2000
9 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I am trying to learn Networking Programming in C in unix enviorment. I want to know how good it is to become a network programmer. i am crazy about Network programming but i also want to opt for the best carreer options. Anybody experienced Network Programmer, please tell me is my... (5 Replies)
Discussion started by: vibhory2j
5 Replies
5. Shell Programming and Scripting
Hi all,
can anyone have sed & awk programming doc..so that to learn it easier.. (1 Reply)
Discussion started by: gk2009
1 Replies
6. Programming
Can someone help me on suggesting some ways to access the memory content in RAM directly from C/C++ source code.
Please provide me any book name or any URL so that I can get an exhaustive
knowledge over it.
If possible please give me some tips on interacting with hardwares directly
through... (3 Replies)
Discussion started by: nandumishra
3 Replies
7. Shell Programming and Scripting
I have started writing one script. It is not taking the if block.
Here is the script:
#!/bin/sh
set USER='/usr/ucb/whoami'
#######################################################################
#Killing Process
#######################################################################... (6 Replies)
Discussion started by: amarpreetka
6 Replies
8. UNIX for Dummies Questions & Answers
How does unix system administration, unix programming, unix network programming differ?
Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies
9. UNIX for Dummies Questions & Answers
Hello.
I like Linux and C programming language. Allways wanted to understand kernel and become a Linux system programmer. And I also like Objective-C and iOS. These two programming areas have relations:
1. Linux and iOS are UNIX-like systems, POSIX compliant.
2. It is useful to know C language... (2 Replies)
Discussion started by: Rockatansky
2 Replies
10. Programming
Is there any way to find the variables declared or defined in a c program and print those variables??
plz help (15 Replies)
Discussion started by: zinat
15 Replies
TR(4) BSD Kernel Interfaces Manual TR(4)
NAME
tr -- TROPIC based shared memory Token-Ring cards device driver
SYNOPSIS
tr0 at isa? port 0xa20 iomem 0xd800 irq ?
tr* at isa? port ? irq ?
tr* at isapnp?
tr* at mca? slot ?
tr* at pcmcia? function ?
DESCRIPTION
The tr device driver supports TROPIC I based shared-memory Token-Ring cards.
HARDWARE
Supported cards include the following IBM and 3Com models:
IBM Token-Ring Network PC Adapter
IBM Token-Ring Network PC Adapter II
IBM Token-Ring Network Adapter/A
IBM Token-Ring Network 16/4 Adapter
IBM Token-Ring Network 16/4 Adapter/A
IBM Token-Ring 16/4 Credit Card Adapter
IBM Token Ring Auto 16/4 Credit Card Adapter
IBM Turbo 16/4 Token Ring PC Card
IBM 16/4 ISA Adapter
IBM Auto 16/4 Token-Ring ISA Adapter
IBM Token Ring 16/4 Credit Card Adapter
IBM Token Ring Auto 16/4 Credit Card Adapter
IBM Turbo 16/4 Token Ring PC Card
3Com 3C619 TokenLink
3Com 3C319 TokenLink Velocity
3Com 3C389 TokenLink Velocity PC Card
SOURCE ROUTING
Setting IFF_LINK0 enables Token-Ring source routing. Setting IFF_LINK1 uses all-routes broadcasts otherwise single-route broadcasts are
used.
NOTES
The MCA attachment has been only tested on IBM Token Ring 16/4 Adapter/A so far. It doesn't support ifmedia(4) yet, too.
SEE ALSO
ifmedia(4), intro(4), isa(4), isapnp(4), mca(4), pcmcia(4), ifconfig(8)
HISTORY
The tr driver appeared in NetBSD 1.4.
BUGS
The PCMCIA attachment does not work with the cbb(4) CardBus driver.
BSD
April 14, 1999 BSD