Search Results

Search: Posts Made By: alvincorrea
4,507
Posted By alvincorrea
Jagst3r21 Your approach presents your menu to...
Jagst3r21
Your approach presents your menu to the user only once and if he has not selected to exit then it goes on to loop infinitely.
The proper approach should be to loop the menu too so that...
4,903
Posted By alvincorrea
Thanks @bakunin I think this grep -v ...
Thanks @bakunin
I think this grep -v '^(..)+$' filename

will work although this will also take spaces into consideration ,as I am not aware if those were to be ignored or not
Please let me...
4,903
Posted By alvincorrea
After some thinking I got the answer I guess.......
After some thinking I got the answer I guess.... group multiples of any 2 characters will give you the even number of characters (including whitespaces).

Now for finding odd exclude the lines...
3,560
Posted By alvincorrea
Ah you are right Check this then ..this is...
Ah you are right

Check this then ..this is also largely from different forums (not able to post the link ) but a little tweaked here and there

#!/usr/bin/perl
$s=join("",<>);
$s=~...
3,560
Posted By alvincorrea
I got this from this (I was not allowed to post...
I got this from this (I was not allowed to post this URL as expected in this response ) another forum but this will suit you for sure
sed -e 's/\/\*.*\*\///g'<test.c will delete all the comments...
Showing results 1 to 5 of 5

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