Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Original Poster
Rep: Reputation: Disabled

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 07:15 PM.


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 01:30 AM
[SOLVED] use sed to find string pattern and delete subsequent characters jigg_fly Programming 16 10-10-2013 09:34 AM
Need to remove the first three characters in the name of a ton of files... ooagentbender Linux - Newbie 17 10-04-2013 03:02 PM
find files with pattern, then copy those files to another directory ncsuapex Programming 4 08-13-2010 04:38 PM
unwanted characters returned with bash find - how to remove? babag Programming 5 06-10-2007 10:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 PM.

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