LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2016, 06:04 PM   #16
Rock26
LQ Newbie
 
Registered: Jul 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by syg00 View Post
That is a change in specification - you will need to re-work the script.
The small difference in version shouldn't matter.
Yes I know. I should have mentioned this before. I observed this today only. It worked fine initially so I didn't check again. Actually there are many such files so didn't get a chance to look all different kind of macros. I thought it removes all "\n" from parenthesis. I didn't notice that it worked only for ";" terminated macro. it worked fine after I changed "{:a;/;/!{N;$!ba}" to "{:a;/)/!{N;$!ba}". But this won't work if I have one more parenthesis pair inside macro.

Last edited by Rock26; 11-01-2016 at 06:15 PM.
 
  


Reply

Tags
awk, grep, perl, scripting, sed


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to remove certain pattern files except another certain pattern files from a list? Mike_Brown Linux - Newbie 4 04-23-2016 12:30 AM
[SOLVED] use sed to find string pattern and delete subsequent characters jigg_fly Programming 16 10-10-2013 08:34 AM
Need to remove the first three characters in the name of a ton of files... ooagentbender Linux - Newbie 17 10-04-2013 02:02 PM
find files with pattern, then copy those files to another directory ncsuapex Programming 4 08-13-2010 03:38 PM
unwanted characters returned with bash find - how to remove? babag Programming 5 06-10-2007 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration