06-04-2018
Thank you for your quick response and help I am a biginner on linux. I will try to run this for loop script with my data to see if it is working.
I am sorry for my english
Cordially
---------- Post updated at 09:09 PM ---------- Previous update was at 06:20 PM ----------
Dear moderator
This bash script generates a file for each command line. However all the files are empty. Is there any way that I can improve it. I am sorry if my question looks trivial.I am just starting with linux programming.
Regards
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
when I try to run rm on multiple files I have problem to delete files with space.
I have this command :
find . -name "*.cmd" | xargs \rm -f
it doing the work fine but when it comes across files with spaces like : "my foo file.cmd"
it refuse to delete it
why? (1 Reply)
Discussion started by: umen
1 Replies
2. Shell Programming and Scripting
I'm trying some thing like this. But not working
It worked for bash files
Now I want some thing like that along with multiple input files by redirecting their outputs as inputs of next command like below
Could you guyz p0lz help me on this
#!/usr/bin/awk -f
BEGIN
{
}
script1a.awk... (2 Replies)
Discussion started by: repinementer
2 Replies
3. Shell Programming and Scripting
Hi,
I need help to split lines from a file into multiple files.
my input look like this:
13
23 45 45 6 7
33 44 55 66 7
13
34 5 6 7 87
45 7 8 8 9
13
44 55 66 77 8
44 66 88 99 6
I want to split every 3 lines from this file to be written to individual files. (3 Replies)
Discussion started by: saint2006
3 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
say I have a few files in a directory (58 text files or somthing)
each one contains mulitple strings that I wish to replace with other strings
so in these 58 files I'm looking for say the following strings:
JAM (replace with BUTTER)
BREAD (replace with CRACKER)
SCOOP (replace... (19 Replies)
Discussion started by: rich@ardz
19 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I'd like to process multiple files. For example:
file1.txt
file2.txt
file3.txt
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
Discussion started by: Liverpaul09
3 Replies
6. UNIX for Dummies Questions & Answers
hi,
I have a directory "test" under which there are 3 files a.txt,b.txt and c.txt.
I need to rename those files to a.pl,b.pl and c.pl respectively.
is it possible to achieve this in a sed or awk one liner?
i have searched but many of them are scripts.
I need to do this in a one liner.
I... (2 Replies)
Discussion started by: pandeesh
2 Replies
7. Shell Programming and Scripting
Hi everyone,
I'm new to the forums, as you can probably tell... I'm also pretty new to scripting and writing any type of code.
I needed to know exactly how I can grep for multiple strings, in files located in one directory, but I need each string to output to a separate file.
So I'd... (19 Replies)
Discussion started by: LDHB2012
19 Replies
8. UNIX for Dummies Questions & Answers
How can I run the following command on multiple files and print out the corresponding multiple files.
perl script.pl genome.gff 1.txt > 1.gff
However, there are multiples files of 1.txt, from 1----100.txt
Thank you so much.
No duplicate posting! Continue here. (0 Replies)
Discussion started by: grace_shen
0 Replies
9. Shell Programming and Scripting
How can I Run one script on multiple files and print out multiple files.
FOR EXAMPLE
i want to run script.pl on 100 files named 1.txt ....100.txt under same directory and print out corresponding file 1.gff ....100.gff.THANKS (4 Replies)
Discussion started by: grace_shen
4 Replies
10. Shell Programming and Scripting
Dear folks
I have two data set which there names are "final.map" and "1.geno" and look like this structures:
final.map:
gi|358485511|ref|NC_006088.3| 2044
gi|358485511|ref|NC_006088.3| 2048
gi|358485511|ref|NC_006088.3| 2187
gi|358485511|ref|NC_006088.3| 17654
... (2 Replies)
Discussion started by: sajmar
2 Replies
LEARN ABOUT DEBIAN
pdebuild-user-mode-linux
pdebuild-user-mode-linux(1) pbuilder pdebuild-user-mode-linux(1)
NAME
pdebuild-user-mode-linux - pbuilder-user-mode-linux way of doing debuild
SYNOPSIS
pdebuild-user-mode-linux [pdebuild-user-mode-linux options] -- [pbuilder-user-mode-linux options]
DESCRIPTION
A convenience program for pbuilder-user-mode-linux which invokes pbuilder after obtaining appropriate root privilege in a Debian source
directory. One must be inside the source tree containing the debian directory, in order to make it work.
PDEBUILD OPTIONS
--buildsourceroot [fakeroot]
The command used to gain root privilege for invoking dpkg-buildpackage
--auto-debsign
Invoke debsign at the end of pdebuild process.
--debsign-k [key-id]
Pass -k option to debsign to specify which keyid to sign.
--buildresult [Directory for build results]
The place which build result is stored.
--configfile [Extra config file to use]
The configuration file is used, but not passed on to pbuilder-user-mode-linux.
--debbuildopts [options to pass to dpkg-buildpackage]
The space-delimited list of options are passed to dpkg-buildpackage. This option appends to pbuilder option --debbuildopts and may
also be used to reset the list of options by passing the empty string.
--use-pdebuild-internal
Uses a different implementation of pdebuild, which calls clean and build inside the chroot, using bind-mounts.
pdebuild-internal tries to run debian/rules clean inside the chroot. To achieve the goal, the working directory is passed on inside
the chroot, in the form of bind-mounting and debuild is run.
This option will not protect the working directory and its parent directories from the build scripts.
-- [pbuilder options]
After the -- symbol, an arbitrary number of pbuilder options can be specified. See pbuilder-user-mode-linux.1 for full list of
options.
There is an exception that --buildresult needs to be specified as pdebuild option before the -- to be effective.
FILES
/etc/pbuilderrc
The configuration file for pbuilder-user-mode-linux, used in pdebuild-user-mode-linux.
/usr/share/pbuilder/pbuilderrc
The default configuration file for pbuilder-user-mode-linux, used in pdebuild-user-mode-linux.
${HOME}/.pbuilderrc
Configuration file for pbuilder-user-mode-linux, used in pdebuild-user-mode-linux, overrides what is written in /etc/pbuilderrc
AUTHOR
Initial coding, and main maintenance is done by Junichi Uekawa <dancer@debian.org>.
The homepage is available at http://pbuilder.alioth.debian.org
SEE ALSO
/usr/share/doc/pbuilder/pbuilder-doc.html, pbuilder-user-mode-linux(1), pbuilderrc(5), pbuilder-uml.conf(5)
Debian 2006 May 24 pdebuild-user-mode-linux(1)