03-05-2005
RE: Understanding
Quote:
Originally Posted by google
What is understanding?
Mutual comprehension, as of ideas, intentions, etc. A mutual agreement, especially one that settles differences or is informal and not made public.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I just started shell coding and I'm a bit confused on how 'mv' works can someone explain to me how it works and if i did this correctly. Thanks.
echo "Enter Name of the first file:"
read file1
#echo $file1
if ; then
echo "Sorry, file does not exist."
exit 1
... (16 Replies)
Discussion started by: taiL
16 Replies
2. Shell Programming and Scripting
# sub: find block (in cols), return line-numbers (begin-end) or 0 if notfound
sub findb{
my ($exp1,$col1,$exp2,$col2)= @_; # $exp = expression to find, $col - column to search in
my $cnt=0;
my ($val1,$val2);
my ($beg,$end);
for($cnt=1;$cnt<=65536;$cnt++){
$val1 =... (3 Replies)
Discussion started by: suvenduperl
3 Replies
3. UNIX for Dummies Questions & Answers
Hi Gurus:
I am trying to understand the following line of code.I did enough of googling to understand but no luck.Please help me understand the follow chunk of code:
X=$0
MOD=${X%/*}/env.ksh
X is the current script from which I am trying to execute.
Say if X=test.ksh
$MOD is echoing :... (3 Replies)
Discussion started by: vemana
3 Replies
4. Solaris
Hi
I have a questions related 2 commands : 'du' and 'ls'.
Why is the difference between output of 'du' and 'ls' cmd's ?
Command 'du' :
------------------
jakubn@server1 /home/jakubn $ du -s *
4 engine.ksh
1331 scripts
'du -s *' ---> shows block count size on disk (512 Bytes... (5 Replies)
Discussion started by: presul
5 Replies
5. Shell Programming and Scripting
Hi all
I stuck with a problem. I want to understand the execution of the below code. Can any one please help me
`sqlplus username/passwd@DB << EOF
set serveroutput on
declare
begin
sql_query;
end;
/
commit
/
quit
EOF`
My ques is why do we use EOF and how does it help. (4 Replies)
Discussion started by: parthmittal2007
4 Replies
6. Shell Programming and Scripting
Hi,
Please help me to understand the bold segments in the below regex.
Both are of same type whose meaning I am looking for.
find . \( -iregex './\{6,10\}./src' \) -type d -maxdepth 2
Output:
./20111210.0/src
In continuation to above:
sed -e 's|./\(*.\{1,3\}\).*|\1|g'
Output: ... (4 Replies)
Discussion started by: vibhor_agarwali
4 Replies
7. Shell Programming and Scripting
Hi Guys,
I am new to scripting , I am trying to rebuild a script based on an old script. Can someone help me figure out what the script is doing? This is only a part of the script.
I am looking to interpret these two points in the scripts:-
1)
test=`echo $?`
while
I do not... (3 Replies)
Discussion started by: rajsan
3 Replies
8. Shell Programming and Scripting
Hi, I saw the following explanation about alias in bash from gnu website, but I didn't get the meaning:
Bash always reads at least one complete line of input before executing any of the commands on that line.
Aliases are expanded when a command is read, not when it is executed. Therefore, an... (3 Replies)
Discussion started by: Roy987
3 Replies
9. UNIX for Dummies Questions & Answers
I tried to use lseek system call to determine the number of bytes in a file. To do so, I used open system call with O_APPEND flag to open a file. As lseek returns the current offset so I called lseek for opened file with offset as zero and whence as SEEK_CUR. So I guess it must return the number of... (3 Replies)
Discussion started by: Deepak Raj
3 Replies
10. Shell Programming and Scripting
Hi,
I found this in a script and I would like to know how this works
Code is here:
# var1=PART1_PART2
# var2=${var1##*_}
# echo $var2
PART2
I'm wondering how ##* makes the Shell to understand to pick up the last value from the given. (2 Replies)
Discussion started by: sathyaonnuix
2 Replies
LEARN ABOUT DEBIAN
planets
planets(1) General Commands Manual planets(1)
NAME
planets - Gravitational simulation of planetary bodies
DESCRIPTION
Planets is a simple interactive program for playing with simulations of planetary systems. It is great teaching tool for understanding how
gravitation works on a planetary level.
The user interface is aimed at being simple enough for a fairly young kid can get some joy of it. There's also a special kid-mode aimed at
very young children which grabs the focus and converts key banging into lots of random planets.
KEYBINDINGS
Universe definition
a Add Planet
j Place random orbital planet
r Place random planet
u Undo (undoes last planet insertion)
e Reset to empty universe
g Go Back (goes back to just after last planet insertion)
Mouse Click on a planet to delete it
Physics
b Toggle bounce (experimental)
Display control
Cursor keys
Panning
c, Space
Move display to center of mass
x Initiate center of mass tracking
= Zoom in
- Zoom out
p Toggle Pause
o Change all colors randomly
t Toggle Trace
d Double Trace Length
h Halve Trace Length
Mouse Drag a box around a set of planets to follow the center of mass of those planets
Program control
H Display help dialog
k Display option dialog
Ctrl-Shift-k
Toggle kid-mode. Kid mode locks the keyboard and mouse, so the only way to get out is to toggle kid-mode again to get out.
l Load Universe After pressing l, press any other character to load the universe with that name. Universes are stored in ~/.planets/ .
s Save Universe After pressing s, press any other character to save the universe with that name. Universes are saved in ~/.planets/ .
q, Esc Quit
TECHNICAL DETAILS
Planets uses a fourth-order runge-kutta approximation for the simulation itself. Planet bouncing is achieved by adding a repulsive force
to planets at close quarters. Planets is fairly flexible: you can change the gravitational constant, the time-slice of the simulation, and
even the exponent used in the gravitational law. Universes are saved in the ~/.planets directory, and are simple human readable and
editable files.
BUGS
Currently bouncing doesn't work very well unless you make the time-slice quite small. Ideally, it would be nice to have a billiard-style
bounce system, but it's not clear how to do this accurately in the presence of a strong gravitational field.
AUTHOR
Planets was written by Yaron M. Minsky <yminsky@cs.cornell.edu> as a gift for his nephew, Eyal Minsky-Fenick.
This manpage was contributed originally by Martin Pitt <martin@piware.de> for the Debian GNU/Linux system (but may be used by others).
April 20, 2003 planets(1)