Sponsored Content
Full Discussion: RS in unix not working
Top Forums Shell Programming and Scripting RS in unix not working Post 100815 by rochitsharma on Thursday 2nd of March 2006 05:31:09 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Test::use::ok(3)					User Contributed Perl Documentation					  Test::use::ok(3)

NAME
Test::use::ok - Alternative to Test::More::use_ok SYNOPSIS
use ok 'Some::Module'; DESCRIPTION
According to the Test::More documentation, it is recommended to run "use_ok()" inside a "BEGIN" block, so functions are exported at compile-time and prototypes are properly honored. That is, instead of writing this: use_ok( 'Some::Module' ); use_ok( 'Other::Module' ); One should write this: BEGIN { use_ok( 'Some::Module' ); } BEGIN { use_ok( 'Other::Module' ); } However, people often either forget to add "BEGIN", or mistakenly group "use_ok" with other tests in a single "BEGIN" block, which can create subtle differences in execution order. With this module, simply change all "use_ok" in test scripts to "use ok", and they will be executed at "BEGIN" time. The explicit space after "use" makes it clear that this is a single compile-time action. SEE ALSO
Test::More CC0 1.0 Universal To the extent possible under law, XX has waived all copyright and related or neighboring rights to Test-use-ok. This work is published from Taiwan. <http://creativecommons.org/publicdomain/zero/1.0> POD ERRORS
Hey! The above document had some coding errors, which are explained below: Around line 45: Non-ASCII character seen before =encoding in 'XX'. Assuming UTF-8 perl v5.18.2 2012-09-11 Test::use::ok(3)
All times are GMT -4. The time now is 06:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy