Home > Cannot Be > Unix Sed Cannot Be Parsed

Unix Sed Cannot Be Parsed


Thanks for the help, guys. Faq Reply With Quote Share This Thread  Tweet This + 1 this Post To Linkedin Subscribe to this Thread  Subscribe to This Thread « Previous Thread | Next Thread Got the following to work but the complex one I can't figure out. $RESULTSFILE="RESULTS.txt" $echo -en "\nLine1 Connection info\n\nLine2\nERROR:\nError message\n\n" > $RESULTSFILE $result=`sed -n '/^ERROR:/{p}' $RESULTSFILE` sed: 0602-404 Function /^ERROR:/{p} cannot sed -E is almost definitely not going to work. navigate here

why does this error keep popping out? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed I am not extremely familiar with sed, so bombard me with corrections! :DThe sed statement is:sed '/build.rev/c\build.rev = '"$BUILD_ID"'' $BUILD_ID_FILE > $BUILD_ID_FILE.1I had our admin apply both PHCO_22800 (sed cumulative patch) I don't want to do a substitution in the file.

Sed Function Cannot Be Parsed Aix

Also, you should declare the encoding of your Ant build file, since you are including non-ASCII characters there. aix sed share|improve this question edited Sep 30 '11 at 22:50 asked Sep 30 '11 at 22:09 LF4 200312 1 I've figured it out and because I can't answer my Showing results for  Search instead for  Do you mean  Menu Categories Solutions IT Transformation Internet of Things Topics Big Data Cloud Security Infrastructure Strategy and Technology Products Cloud Integrated Systems Networking

Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started W. In your command you specify too many fields - which is a syntax error, and is why your function cannot be parsed. Any more suggestions are gladly welcomed, guys.

They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Sed: 0602-404 Function Cannot Be Parsed. up vote 1 down vote favorite I need to replace a particular character in a text file with another character. Polyglot Anagrams Cops' Thread more hot questions question feed lang-xml about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Celvin Kattookaran replied Apr 24, 2009 Hi Will I want to add a new line after File from Old Cube: and File from New Cube: Thats why i was using the

linux unix ant sed share|improve this question edited Apr 12 '11 at 15:20 sudocode 12.6k2141 asked Apr 12 '11 at 14:29 trilawney 72331527 add a comment| 3 Answers 3 active oldest TIKZ: foreach not compatible with calc-library? leena_d View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by leena_d 03-17-2010, 02:57 AM #12 konsolebox Senior Member Registered: Oct 2005 Distribution: Someone peeled an American flag sticker off of my truck.

Sed: 0602-404 Function Cannot Be Parsed.

Then you have to add a g for a global substitution: sed 's/E/A/g' app.txt share|improve this answer answered Apr 12 '11 at 14:37 bmk 9,44242135 +1. 20 seconds faster What Could Cause Flash Over / Arcing to Reappear on New Plugs? Sed Function Cannot Be Parsed Aix England Distribution: Mandriva Posts: 333 Rep: You could try building 755 up in sections using bash arithmetic. Sed Command In Unix You're now being signed in.

You should be careful when working w/ input files not based around \newline delimiters and using tools designed to handle \newline delimited data (such as sed and grep) because some implementations Wolfgang Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... If you need to reset your password, click here. It's not clear to me... –mikeserv Apr 2 '15 at 8:30 | show 3 more comments 2 Answers 2 active oldest votes up vote 1 down vote accepted If there is

Updated on 2009-08-05T10:33:01Z at 2009-08-05T10:33:01Z by tony.evans tony.evans 0600007X8X 412 Posts Re: sed: Function cannot be parsed ‏2009-08-05T10:33:01Z This is the accepted answer. In any case, sed is a line-oriented tool and the single line input file does not bode well for its application. –mikeserv Apr 2 '15 at 9:10 add a comment| Your Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Juniper Networks View All Topics View All Members View All Companies Toolbox for IT Topics UNIX Groups Ask a New Question Shell Script The Shell Script group is a forum where

It is for a nightly build process, and is the last piece that I need to port. more hot questions question feed lang-bsh about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation If your file is named A and you want the modified results in B then this should work: |' ' ' | tr -s ' ' >B.

I tested in on ubuntu and osx, and works on both (on sed version 4.2.2). –jherran Apr 2 '15 at 9:07 @jherran - that's most likely GNU sed -

Was it legal to rant against trick or treating via loudspeaker during halloween? I need to grab the line that starts with /build.rev/ and replace the entire line with this:build.rev = $NEW_BUILD_IDHope this helps.-- Shane 0 Kudos Reply Shane Coombs Occasional Contributor Options Mark LinuxQuestions.org > Forums > Non-*NIX Forums > Programming sed: Function cannot be parsed. minifish Shell Programming and Scripting 2 02-14-2008 05:25 PM How to convert the "select" function into a "poll" function rbolante Programming 1 07-10-2001 11:49 AM All times are GMT -4.

Toolbox.com is not affiliated with or endorsed by any company listed at this site. All product names are trademarks of their respective companies. Why do some banks have more than one routing number in the US? Find More Posts by konsolebox View Blog 03-18-2010, 12:14 AM #13 leena_d LQ Newbie Registered: Dec 2009 Posts: 26 Original Poster Rep: So if this hold space is 8192,

After the question update: $ cat filename > Test Item|Test Item < Test Item|Test Item $ cat filename | sed -E 's:[<>]\s(.*)\|(.*)$:\1 \2:g' Test Item Test Item Test Item Test Item sed "// i\ File from Old Cube:" difference1.txt > Difference.txt Can somebody please help me. Problem solved, monkey off back, smile on face...--Shane 0 Kudos Reply The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. facebook google twitter rss Free Web Developer Tools Advanced Search  Forum Operating Systems UNIX Help Function cannot be parsed error in Sed Thread: Function cannot be parsed error in Sed

Professor Lewin: "Which string will break?" / Me: "That one." / Professor Lewin: "Wrong!" Does an Eldritch Knight's war magic allow Extra Attacks? Basic Geometric intuition, context is undergraduate mathematics How do I deal with my current employer not respecting my decision to leave? No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers W.

If there is an space between symbols < and >, you should replace <> with <\s>. But i am getting an error that function can't be parsed. Last edited by leena_d; 03-18-2010 at 12:17 AM. Topic Forum Directory >‎ dW >‎ AIX and UNIX >‎ Forum: AIX Forum >‎ Topic: sed: Function cannot be parsed 1 reply Latest Post - ‏2009-08-05T10:33:01Z by tony.evans Display:ConversationsBy Date 1-2