8 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I am running a script under ubuntu 16.04
I have no problem with the script. My question is general algorithm of for file command.
I just need to know how for file in *.txt process works.
Let's say, I wish to run the script by sorting filename:
for file in *.txt
do
"do something in... (2 Replies)
Discussion started by: baris35
2 Replies
2. Shell Programming and Scripting
Hi,
i would like to insert a if-then-else function in to cycle for
--------------
cat test
--------------
# cat test
ALFA
BETA
GAMMA
-----------------------
This is my script:
#!/bin/bash
for i in $(cat test); if ; then
echo "ok"
else (5 Replies)
Discussion started by: elilmal
5 Replies
3. Shell Programming and Scripting
i have a question how to modify below script to generate the expect result below :
test.sh
#!/bin/bash
for ((i=0; i < 25; i++))
do
echo $1$i
done
current result:
test.sh 20090101
200901010
200901011
200901012
200901013
200901014
200901015
200901016
200901017
200901018 (2 Replies)
Discussion started by: bleach8578
2 Replies
4. Shell Programming and Scripting
Hello,
I have a question:
is there a way to have a "for" cycle done a certain number of times. For example in c++ I can do this:
for (i=o;i<10;i++)
and the cycle will be repeated 10 times.
in UNIX for example I do this:
for i in `cat /etc/host` do done
and the cycle will be repeated... (6 Replies)
Discussion started by: jcpetela
6 Replies
5. Programming
Hello everybody!
Is there a way to count the clock cycles (that a program took to finish) in C?
thanx:o (5 Replies)
Discussion started by: nicos
5 Replies
6. Shell Programming and Scripting
hello everybody,
I need help on putting a wildcard match inside an if condition (I'm using korn shell):
if ]
then echo ' '
echo ''$MYSEL' is not a correct option'
echo ' '
else .....
i tried also #if -ne "``" and a lot of combinations of `"' but I didn't find the... (2 Replies)
Discussion started by: elionba82
2 Replies
7. Shell Programming and Scripting
Hello,
I have files in a dir.
I what to create a FOR cycle that will do this
FOR <condition> do
file=`ls <directory> | tail -1`
echo $file
mv -f $file <another dir>
done
What I want to now is what should I put in the <condition>. The condition I want is that the FOR will execute... (3 Replies)
Discussion started by: nagomes
3 Replies
8. Shell Programming and Scripting
Hello
I got a cycle in the script which open another scripts.
if
then
action
fi
Scripts action will be running 2 times at the same time.
Inside of action() is insert into the table.
But what I want is that only first script can do insert into table.
So how to do... (2 Replies)
Discussion started by: mape
2 Replies
Gambas(1) Gambas(1)
NAME
gambas - Integrated Development Environment.
SYNOPSIS
gambas [<project file or project directory>]
DESCRIPTION
Gambas is, before all, a Basic language with object extensions. A program written with Gambas is a set of files. Each file describes a
class, in terms of object programming. The class files are compiled, then executed by an interpreter. From this point of view, it is very
inspired by Java.
Gambas is made up of the following programs:
* A compiler.
* An interpreter.
* An archiver.
* A graphical user interface component.
* A development environment.
The development environment is written with Gambas itself, so that I can show the abilities of the language. And it is very useful for
debugging!
gambas starts the Integrated Development Environment.
AVAILABILITY
Updated source code and most documentation about gambas can be found at http://gambas.sf.net, documentation about the language is at
http://www.binara.com/gambas-wiki, documentation in the spanish language is at http://gambas.gnulinex.org.
REPORTING BUGS
Report bugs to <gambas@users.sourceforge.net>.
COPYRIGHT
Copyright(C) 2002, 2012 Benoit Minisini <gambas@users.sourceforge.net;
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
Ubuntu March 2012 Gambas(1)