Search Results

Search: Posts Made By: Jackuar
20,351
Posted By Jackuar
Thanks binlib.. that single line thing...
Thanks binlib.. that single line thing worked...!!

Chubler and Shell_Life...

Thanks a lot for your help... Both your codes looks impressive (and a bit confusing for a beginner like me) but...
20,351
Posted By Jackuar
Kurumi... I get an error that says -0777 not...
Kurumi...
I get an error that says -0777 not found... and if I give $ ruby <.....>, it says ruby not found...

binlib...
Thanks for your help... Can I have that command in a single line...? Am...
20,351
Posted By Jackuar
Still the same... Just first line of comment and...
Still the same... Just first line of comment and last slash gets removed....
20,351
Posted By Jackuar
of course... please tell me..
of course... please tell me..
20,351
Posted By Jackuar
It still removes only the starting line of the...
It still removes only the starting line of the comment part...

Text /* line 1
line2 */

gives -->

Text
line2 *

From /* to End of line is removed

Am not sure, why or how the last...
20,351
Posted By Jackuar
nope... doesn't work :( Not necessarily...
nope... doesn't work :(


Not necessarily sed to be used. Can I do it in some other way... ? May be use cut ? Or loop through the lines after the first occurrence of /* till you get the next */...
20,351
Posted By Jackuar
I 'm using Solaris 10... Unix shell is...
I 'm using Solaris 10...

Unix shell is ksh..
20,351
Posted By Jackuar
@Scrutinizer.. I get a blank file as...
@Scrutinizer..

I get a blank file as output... !! As if everything is deleted...!
20,351
Posted By Jackuar
Thank you Scrutinizer... The main issue of...
Thank you Scrutinizer...

The main issue of this part...

Code here; /*..... comment starts
Code here; comment ends */

This comment section is not removed...

I get it as

Code...
20,351
Posted By Jackuar
Removing Multiple Line comments
:) Hi all,

I would like to remove all multiple line comments, in between the pattern /*.....*/ from my file.

The comments can be expected to be at any place in my file, like this:
/*.......
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 01:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy