I just want to write a little script, that reads the lines from a file, echos somthing in a new tmp.file and then do some commands whith the tmp.files.
while read -r line
do
echo "TEST=" > tmp.$$
echo "$line" >> tmp.$$
any_command < tmp.$$
done < $INPUTFILE
But I think I have to... (2 Replies)
Dear experts,
i am quite new to shell script please any one can help me in this regard
i would like write a script which takes input in the form
>./Test.sh a,10,b,20,c,30...
in this way i can give input in any number which is not constant
in the end through loop i want to... (3 Replies)
Hi everyone,
I have n number of data in my file "temp" in following order.In each line table_name and
column_name are different.input data is in same format each query in three lines.
ALTER TABLE table_name
ADD ( column_name1 VARCHAR2(10),
column_name2 VARCHAR2(70) );
... (23 Replies)
Hi all,
i write a script c shell
set i = 1
while ( $i <= $#array )
echo "$array"
@ i++
end
i want to set it to i = i +2 in that statement . Can anybody help me?
---------- Post updated at 02:46 PM ---------- Previous update was at 02:35 PM ----------
anybody not how to solve it??? (2 Replies)
Hello I am very new to shell and I bought some books and trying to learn it. I started trying to write a script that will take a number and count it down to 1 with commas in between. This number can only be one argument. If lower than one or higher than one argument it sends an error message. ... (4 Replies)
I am looking to a solution to the following problem. I have a very large file that looks something like this:
Each group of three numbers on each line are three probabilities that sum to one.
I want to output the maximum for each group of three. So desired output would be:
or... (6 Replies)
Hi,
I have multiple files in a directory. Each file will have a header.I have to check if any of the files has 0 rows other than the header then I have to delete the files.
Here “ Empty file” in my case means a file has header information but no data. I have to delete such files.
If the file... (2 Replies)
Hi Friends, I have a file. the content is as below:
file1:
/A/B/C/abc.txt
2013-07-28 13:50:00,2013-07-31 01:00:00,5,710
/A/B/C/xyz.txt
2011-09-21 18:30:00,2013-07-30 06:15:00,15,65135
2009-11-09 18:00:00,2011-09-02 09:00:00,5,12345
2013-07-28 13:50:00,2013-07-31 01:00:00,5,710
... (2 Replies)
Hi
I have written a shell script which will test 300 to 500 IPs to find which are pinging and which are not pinging.
the script which give output as
10.x.x.x is pining
10.x.x.x. is not pining
-
-
-
10.x.x.x is pining
like above.
But, this script is taking... (6 Replies)
I want to create a shell script to add a user and modify its comment field mentioned in a file.
1.
File value:-
username comment field value
xyz123 xyztesting
abc123 abctesting
def123 deftesting
2. i am using below loop to create user... (2 Replies)
Discussion started by: Anil
2 Replies
LEARN ABOUT DEBIAN
pbuilder-dist-simple
PBUILDER-DIST-SIMPLE(1) General Commands Manual PBUILDER-DIST-SIMPLE(1)NAME
pbuilder-dist-simple - simple multi-release pbuilder wrapper
SYNOPSIS
pbuilder-<dist> operation [...]
DESCRIPTION
pbuilder-dist-simple is a wrapper that makes it easy to use pbuilder with chroots for many different Ubuntu distributions. If you need
more features than pbuilder-dist-simple provides, have a look at pbuilder-dist(1).
USAGE
Create one symlink to pbuilder-dist-simple for each distribution for which you want a build environment, naming them like "pbuilder-lucid",
"pbuilder-natty", etc.
Replace operation with the action you want pbuilder-dist-simple to do (create, update, build, clean, login or execute).
EXAMPLES
pbuilder-natty create
Creates a pbuilder environment for Ubuntu Natty.
pbuilder-lucid update
Updates an existing Ubuntu Lucid environment.
pbuilder-lucid build ./sample_1.0-0ubuntu1.dsc
Builds the specified package on an already existing Ubuntu Lucid environment.
FILES
By default, pbuilder-dist-simple will store all the files it generates in ~/pbuilder/. This can be changed by modifying the BASE_DIR value
on the top of the script to any other directory you want. If the directory doesn't exit, it will be created at runtime.
SEE ALSO pbuilder(1), pbuilderrc(5), pbuilder-dist(1)AUTHORS
pbuilder-dist was originally written by Jamin W. Collins <jcollins@asgardsrealm.net> and Jordan Mantha <mantha@ubuntu.com>, and this man-
page by Siegfried-A. Gevatter <rainct@ubuntu.com>.
Both are released under the GNU General Public License, version 2 or later.
ubuntu-dev-tools February 25, 2008 PBUILDER-DIST-SIMPLE(1)