12-20-2008
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is shell programming assignment.
It needs to create a file called .std_dbrc contains
STD_DBROOT=${HOME}/class/2031/Assgn3/STD_DB
(which includes all my simple database files)
and I am gonna use this .std_dbrc in my script file (read the data from the database files)
like this: .... (3 Replies)
Discussion started by: ccwq
3 Replies
2. Shell Programming and Scripting
Hello,
Is there any way where a shell scripts source code can be protected? Basically, I'm after to convert shell scripts into to some form of binaries so that my shell script source code can be protected.
Forgot to mention, this is on solaris.
Many thx,
kam (6 Replies)
Discussion started by: jkkstar
6 Replies
3. Shell Programming and Scripting
Hi
I am having a script which sets the application environment. In this script i am sourcing the applications env file, when i am debugging the script i see its executing all the environment values and all the variable values are set properply.
Once this main shell script executes, then... (4 Replies)
Discussion started by: umakanthly
4 Replies
4. Shell Programming and Scripting
I need to write a shell script to transfer the files every hour from source - target server.
The cron job should be running every hour and shouldn't copy already copied files to the remote server ?
I was able to write intial script but not able to get the logic for (in the next run it should... (12 Replies)
Discussion started by: radhirk
12 Replies
5. Shell Programming and Scripting
Hi
While running a Shell Script in a K Shell using the source command
source <script_name>
It gives the error ..
source: not found.
Null message body; hope that's ok
Is it that the source command does not work in K Shell.
It works well in bash shell. (2 Replies)
Discussion started by: harneet2004us
2 Replies
6. Shell Programming and Scripting
Hello to all,
I am looking for a way to display only the names of function (calls & definition) of a C++ source code.There is already a post related to this, but the script is to find the functions using a specific variable, and the replies are not that convincing since they cannot be used for... (2 Replies)
Discussion started by: frozensmilz
2 Replies
7. Shell Programming and Scripting
Hi,
I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is
# echo $0
-sh
My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Discussion started by: muraliinfy04
13 Replies
8. Shell Programming and Scripting
Hi there,
I'm a newbie in unix and am fishing for options related to how raw input data files are handled. The scenario, as I'm sure y'all must be very familiar with, is this : we receive upwards of 50 data files in ASCII format from various source systems - now each file has its own structure... (3 Replies)
Discussion started by: Prat Khos
3 Replies
9. Shell Programming and Scripting
Just began to learn on Shell Script. I got an exercise from my friend. I know how to make this happen in C, but I'm not familiar with Shell Script. Hope I can get some help from all of you.
I want to write a bash script to comment code blocks in a bash source file. What I mean comment is '#', I... (1 Reply)
Discussion started by: HiFuture0801
1 Replies
LEARN ABOUT DEBIAN
javascript::beautifier
JavaScript::Beautifier(3pm) User Contributed Perl Documentation JavaScript::Beautifier(3pm)
NAME
JavaScript::Beautifier - Beautify Javascript (beautifier for javascript)
SYNOPSIS
use JavaScript::Beautifier qw/js_beautify/;
my $pretty_js = js_beautify( $js_source_code, {
indent_size => 4,
indent_character => ' ',
} );
DESCRIPTION
This module is mostly a Perl-rewrite of <http://github.com/einars/js-beautify/tree/master/beautify.js>
You can check it through <http://jsbeautifier.org/>
FUNCTIONS
js_beautify( $js_source_code, $opts );
beautify javascript.
options
indent_size
indent_character
if you prefer Tab than Space, try:
{
indent_size => 1,
indent_character => " ",
}
preserve_newlines
default is 1
my $in = "var
a=dont_preserve_newlines";
my $out = "var a = dont_preserve_newlines";
my $js = js_beautify( $in, { preserve_newlines => 0 } );
# $out eq $js
$in = "var
a=do_preserve_newlines";
$out = "var
a = do_preserve_newlines";
$js = js_beautify( $in, { preserve_newlines => 1 } );
# $out eq $js
space_after_anon_function
default is 0
AUTHOR
Fayland Lam, "<fayland at gmail.com>"
COPYRIGHT & LICENSE
Copyright 2008 Fayland Lam, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2009-12-30 JavaScript::Beautifier(3pm)