It may be a no-brainer, but the answer is escaping me right now:
I'm trying to write a little script to remove all comments from .c source... I was thinking sed, but I'm not a very strong regexp user (e.g. I suck with sed).
I tried dumping the file into:
sed -e 's/\/\* * \*\///g'
and several... (1 Reply)
Hi
can anyone help me regarding the meaning of the following lint messages.
what is the use of having such lint comments in the c program.
/*lint -esym(534,cputs,fgets,cprintf) */
/*lint -efile(766,pragmas.h) */
Thanks a lot in advance. (5 Replies)
Delete everything comes in between /* & */.
Current File:
====================
create or replace procedure test421
is
begin
/*
---sasasas/*dsdsds
*/
dbms_output.put_line('SAURABH');
END;
To be File:
===================
create or replace procedure test421
is
begin... (10 Replies)
How can I delete comments (lines beginning with /* and ending with */) in file?
with single command line..My suggestion is to use grep and sed! (4 Replies)
I must write a script to change all C++ like comments:
// this is a comment
to this one
/* this is a comment */
How to do it by sed? With file:
#include <cstdio>
using namespace std; //one
// two
int main() {
printf("Example"); // three
}//four
the result should be: (2 Replies)
I want to write a shell script which it takes as argument a java file or a c++ file (.java or .cpp).
It will check if the file is type of java or c++, else it ends with error message.
If all are ok, it will call awk that prints only the comments that the java or c++ file contains, grouping and... (5 Replies)
hii all,
i am writing a shell script to remove comments from a .c/.cpp file.
i have written script as
the above script file deletes line between /* and */ also lines starting with //.
but the problems are :
1) i dont want to delete the content between /** and */.
2)sed -i... (16 Replies)
Discussion started by: yashwantkumar
16 Replies
LEARN ABOUT OPENSOLARIS
prtdscp
prtdscp(1M) System Administration Commands prtdscp(1M)NAME
prtdscp - display DSCP IP addresses
SYNOPSIS
prtdscp [-v ]
prtdscp [-v ] -h
prtdscp [-v ] -d
prtdscp [-v ] -s
DESCRIPTION
prtdscp displays the IP addresses associated with a Domain to Service Processor Communications Protocol (DSCP) link. If no arguments are
specified, prtdscp displays the IP addresses on both ends of the DSCP link. The IP address of either the Service Processor or domain side
can be displayed separately by the use of the -s or -d options, respectively.
OPTIONS
The following options are supported:
-v Verbose mode. Print additional details about the program's internal progress to stderr.
-h Help. Print a brief synopsis of the program's usage and exit. All other command line arguments are ignored.
-d Display only the local domain's IP address.
-s Display only the remote Service Processor's IP address.
EXAMPLES
Example 1 Displaying both addresses
The following example displays both the local domain's IP address and the remote SP's IP address:
# prtdscp
Domain Address: 192.168.103.2
SP Address: 192.168.103.1
Example 2 Displaying the local IP address
The following example displays the local domain's IP address:
# prtdscp -d
192.168.103.2
Example 3 Displaying the remote IP address
The following example display the remote SP's IP address:
# prtdscp -s
192.168.103.1
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWdscpr.u, SUNWdscpu.u |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)SunOS 5.11 25 Apr 2006 prtdscp(1M)