03-28-2008
Low-level languages build character, but that doesn't mean you have to live with them if you don't want to. But this is hardly the place for an advocacy discussion (sorry for baiting you). My point was just that a good half of any typical coding guideline will be dealing with traps in any particular language; a good language doesn't have many such traps, and so it's easier for the guideline author to concentrate on substantial issues of style and comprehension. In my limited experience, few languages are good, by this definition, and even fewer of those which are will reach any level of popularity.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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)
Discussion started by: LivinFree
1 Replies
2. Shell Programming and Scripting
Hi All,
I am working on a sh script.
Half way through the script, my comments start to print to screen as if I used echo.
Obviously any comments are preceded with a #.
And I have not used set -x or anything similar.
Can anyone free me of this simple but annoying problem?
Thanks
John (5 Replies)
Discussion started by: John H
5 Replies
3. Programming
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)
Discussion started by: axes
5 Replies
4. Shell Programming and Scripting
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)
Discussion started by: susau_79
10 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: aadi_uni
4 Replies
6. Shell Programming and Scripting
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)
Discussion started by: black_hawk
2 Replies
7. Shell Programming and Scripting
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)
Discussion started by: Mark_orig
5 Replies
8. UNIX for Dummies Questions & Answers
Hello i am back :D,
i have a prolem. I want to Delete the IPs which are in Comments.
Input
192.168.0.1
192.168.0.2
#192.168.0.3
#192.168.0.4 - when TAB or Space, delete too.
/*192.168.0.5
192.168.0.6
192.168.0.7*\
Output
192.168.0.1
192.168.0.2
My solution is sed -e... (7 Replies)
Discussion started by: eightball
7 Replies
LEARN ABOUT HPUX
geocustoms
geocustoms(1M) geocustoms(1M)
NAME
geocustoms - configure system language on multi-language systems
SYNOPSIS
locale]
DESCRIPTION
The command manages default selection of multiple languages installed on "ignited" (Instant Ignition) systems. In subsequent sessions,
invoking the command starts When invoked with no options, runs interactively with a terminal interface.
Options
Non-interactively set the
parameter. To view all locales available on the system, run If the locale argument is not a valid option for the sys-
tem, an error message is issued and the terminal user interface (also known as TUI or UI) appears, as if the option were
not used.
If the argument to the option is locale parameters are set to by default. A null locale causes programs to execute without using localized
message catalogs, which can increase system performance. All HP-UX messages appear in English if the locale is set to
The command must be invoked by a user with appropriate privilege.
If is invoked directly by the user, it might be necessary to log out and login again for language changes to take effect.
RETURN VALUE
Successful completion and/or clean exit from command.
Command unable to complete all objectives.
DIAGNOSTICS
Standard Output
The non-interactive command does not write to
EXAMPLES
To set the default system language non-interactively to German:
DEPENDENCIES
Limitations
The command does not do the following:
o Manage languages at the codeset level.
o Manage keyboard selection.
o Create or remove locale definitions.
o Provide a special interface for restoring or adding languages to the system from depots or media.
FILES
The command itself.
System configuration files modified by
AUTHOR
The command was developed by HP.
SEE ALSO
locale(1), setlocale(3C).
STANDARDS CONFORMANCE
(SPEC1170 and XPG4).
geocustoms(1M)