8 More Discussions You Might Find Interesting
1. 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
2. Homework & Coursework Questions
I am completely new to Shell scripting and I have almost no idea what I'm doing here. I'm not a stranger at all to programming, but the way SHELL is done drives me to insanity. Here's my current issue:
1. We are to create a BASH script called rafactor.sh
This program takes in two (or three)... (6 Replies)
Discussion started by: Okysho
6 Replies
3. Shell Programming and Scripting
Hi, i have a problem with a sed command runned in a for cycle...
I have a file named fileX which contains (i have crippled the line to minimal for easy):
load data dbfoo - TOCHANGE - comment
load data dbboo - TOCHANGE - comment
load data dbzoo - TOCHANGE - comment
...
And a file... (8 Replies)
Discussion started by: maxlamax
8 Replies
4. 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
5. 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
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
Config::Model::models::Debian::Dpkg::Source(3pm) User Contributed Perl Documentation Config::Model::models::Debian::Dpkg::Source(3pm)
NAME
Config::Model::models::Debian::Dpkg::Source - Configuration class Debian::Dpkg::Source
VERSION
version 2.021
DESCRIPTION
Configuration classes used by Config::Model
Model of files found under debian/source directory. See dpkg-source for details.
Elements
format - source package format
Specifies the format of the source package. A missing format implies a '1.0' source format.Mandatory. Type enum. choice: '1.0', '2.0', '3.0
(native)', '3.0 (quilt)', '3.0 (custom)', '3.0 (git)', '3.0 (bzr)'.
Here are some explanations on the possible values:
'1.0'
A source package in this format consists either of a .orig.tar.gz associated to a .diff.gz or a single .tar.gz (in that case the
package is said to be native).
'2.0'
was the first specification of a new-generation source package format. This format is not recommended for wide-spread usage, the format
"3.0 (quilt)" replaces it.
'3.0 (bzr)'
This format is experimental. It generates a single tarball containing the bzr repository.
'3.0 (custom)'
This format is particular. It doesn't represent a real source package format but can be used to create source packages with arbitrary
files.
'3.0 (git)'
This format is experimental. A source package in this format consists of a single bundle of a git repository .git to hold the source of
a package. There may also be a .git shallow file listing revisions for a shallow git clone.
'3.0 (native)'
extension of the native package format as defined in the 1.0 format.
'3.0 (quilt)'
A source package in this format contains at least an original tarball (.orig.tar.ext where ext can be gz, bz2, lzma and xz) and a
debian tarball (.debian.tar.ext). It can also contain additional original tarballs (.orig-component.tar.ext).
options
Source options as described in dpkg-sourceOptional. Type node.
SEE ALSO
o cme
o Config::Model::models::Debian::Dpkg::Source::Options
AUTHOR
Dominique Dumont
COPYRIGHT
2010,2011 Dominique Dumont
LICENSE
LGPL2
perl v5.14.2 2012-11-09 Config::Model::models::Debian::Dpkg::Source(3pm)