RS in unix not working


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting RS in unix not working
# 1  
Old 03-02-2006
problem using awk

my code is

nawk ' BEGIN { RS = "<CRM";
FS = ".;-"
}
' file_name

even when i have explicitly defined the record separator as <CRM. Still the system is taking new line as record separator. please help
Thanks in advance.

Regards
Rochit

Last edited by rochitsharma; 03-02-2006 at 12:02 PM.. Reason: title was not appropriate
# 2  
Old 03-02-2006
Closed duplicate
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Working with if and sed in UNIX

I have a text file containing multiple lines like password="&test."; password="xyz"; password='write some'; password="&testwrite."; today='o1jan2017'd; ----------------- ------------------ I don't want to replace the string value which are starting with & for Password variable... (3 Replies)
Discussion started by: harshabag
3 Replies

2. UNIX for Dummies Questions & Answers

easy UNIX for loop not working...

So, I am trying to find and print info about all of the .txt files in a current directory. This is the information that I intend to gather: -File number (say there are 6 .txt files in the directory...it would be incremented 1-6) -File name -File directory -Number of lines Pretty... (2 Replies)
Discussion started by: statichazard
2 Replies

3. Shell Programming and Scripting

@ not working on one unix server

stty -a speed 38400 baud; rows 28; columns 115; intr = ^?; quit = ^\; erase = ^H; kill = @; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; -parenb -parodd cs8 -hupcl -cstopb cread -clocal crtscts... (2 Replies)
Discussion started by: kunwar
2 Replies

4. UNIX for Dummies Questions & Answers

UUCP (Unix to unix copy) not working

I have a problem using uucp. I have Ubuntu 10.4 and i installed the 'uucp' package. In my LAN there are a desktop pc, a laptop, and the router the desktop local ip is: 192.168.0.2 the laptop local ip is: 192.168.0.4 Here are the /etc/uucp/config and the /etc/uucp/sys i used on the desktop.... (4 Replies)
Discussion started by: mghis
4 Replies

5. Shell Programming and Scripting

usermod -p not working in HP Unix

Hi; Im working on HP -UX B.11.11 U 9000/800 , I come from a Linux background and i m not so good at HP UX.Here is the issue I need to reset the password of some 100 users at one go ,on linux I used to do it.I wrote a small code in linux and it worked a charm here is the code ,where... (2 Replies)
Discussion started by: maverick_here
2 Replies

6. HP-UX

xclock not working in HP-Unix 11.23

Hi, I need to install Oracle on HP-UX 11.23.But I'm unable to start xclock to check if x-server is working fine or not. Have tried connecting using reflection but no luck. Have also set the display but still it does not work. Any suggestions would be appreciated. Regards, Narayan (1 Reply)
Discussion started by: narayanv
1 Replies

7. Shell Programming and Scripting

sed -i not working in HP unix

hi i want to append the number in each file,but when i ran this command:- sed -i "1i 50" filename its giving error sed: illegal option -- i in HP unix but its working in linux. any advice !!!!!!!!! (6 Replies)
Discussion started by: abhigrkist
6 Replies

8. UNIX for Dummies Questions & Answers

tar not working in HP unix

Hi , I want to tar a directory and then ZIP it. I am using HP unix. I want to tar the directory such that the original directory should be there . When i tried to use tar -cvf . My system is showing error (>) tar -cvf test_per tar: usage tar {txruc}] file] ... (>) tar -c... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies

9. UNIX for Dummies Questions & Answers

telephone working in unix

sir, i came to know that telephone exchanges use unix for the working of telephones,that is when we take our hand set in telephone we can note a dial sound,for this telephone exchanges use unix. we are going to do project using unix,i want to know wheater we can able to connect... (1 Reply)
Discussion started by: radheesh
1 Replies

10. IP Networking

unix and xp working together??

Unix and windows XP on a IBM rs6000 server. I can't approche the server from the pc with XP. Can somebody tell me something about this problem?:confused: (4 Replies)
Discussion started by: charley
4 Replies
Login or Register to Ask a Question