There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet java laptop malware memory missing monitor motherboard mouse music network obp printer problem ram registry router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
sed -r problem in AIX

Reply  
Thread Tools
sridhusha's Avatar
Junior Member with 1 posts.
 
Join Date: Sep 2007
Experience: Intermediate
03-Sep-2007, 02:19 PM #1
sed -r problem in AIX
Hi All,

I have one doubt in the AIX. I executed the below command in the LINUX but i could not execute same thing in the AIX. Please see the details of my issue in below.

[root@vcswin3 ~]# cat test
line 1 (one)
line 2 (two)
build=test
line 3 (three)

[root@vcswin3 ~]# sed -r 's/build=\w+/build=new_build/' test
line 1 (one)
line 2 (two)
build=new_build
line 3 (three)

I want execute the same above sed command in the AIX, but its throwing error like sed -r is illegal object. so please anybody tell me what is the related command in the AIX. so that i'll execute my issue in the AIX.

Thanks in Advance.... please help me ASAP.....


Regards,
Sridhar.
Squashman's Avatar
Trusted Advisor with 18,703 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
03-Sep-2007, 03:39 PM #2
No MAN pages in AIX?
lotuseclat79's Avatar
Distinguished Member with 21,344 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
03-Sep-2007, 06:36 PM #3
Here is a man page for AIX sed. Apparently, there is no -r parameter.

Look at the examples for how to do the substitution.

-- Tom
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:30 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.