Sponsored Content
Top Forums Shell Programming and Scripting Read input txt while find copy Post 302642067 by MILAN KUMAR on Thursday 17th of May 2012 01:33:37 AM
Old 05-17-2012
Dear Otheus,
Thank you for your quik, solution but still it does not work and the code dose not seem complete when i execute them. it expects something more not quite sure what.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Read from fileList.txt, copy files from directory tree

Hi, hopefully this is a fairly simple Q&A. I have a clean file list of approximately 180 filenames with no directory or slashes in front of the filename nor any extension or dot ".". I would like to read from this list, find these files recursively down through directory trees, copy the files... (1 Reply)
Discussion started by: fxvisions
1 Replies

2. Shell Programming and Scripting

sed to read x.txt and grep from y.txt

How would I write a command(s) to read from a file (list) that looks like this: 29847374384 and grep from a second file (list) that looks like this: 29847374384, jkdfkjdf,3833,ddd:confused: (1 Reply)
Discussion started by: smellylizzard
1 Replies

3. Shell Programming and Scripting

help copy *.txt to postgres

hi all, a have problem to load *.txt to postgres my database: id_list_ip (nextval) list_ip (varchar) txt file (list_ip.txt) hasilping_10.8.248.1 hasilping_119.110.112.226 hasilping_119.110.125.33 hasilping_125.22.1.25 hasilping_192.168.2.1 hasilping_202.73.96.70 script... (3 Replies)
Discussion started by: adi0926
3 Replies

4. UNIX for Dummies Questions & Answers

find lines in file1.txt not found in file2.txt memory problem

I have a diff command that does what I want but when comparing large text/log files, it uses up all the memory I have (sometimes over 8gig of memory) diff file1.txt file2.txt | grep '^<'| awk '{$1="";print $0}' | sed 's/^ *//' Is there a better more efficient way to find the lines in one file... (5 Replies)
Discussion started by: raptor25
5 Replies

5. Shell Programming and Scripting

Help with Bash piped while-read and a read user input at the same time

Hi I am new to writing script and want to use a Bash Piped while-read and read from user input. if something happens on server.log then do while loop or if something happend on user input then do while loop. Pseudocode something like: tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
8 Replies

6. Shell Programming and Scripting

Read input files and merge them in given order and write them to input one param or one file

Dear Friends, I am looking for a shell script to merge input files into one file .. here is my idea: 1st paramter would be outfile file (all input files content) read all input files and merge them to input param 1 ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
4 Replies

7. Shell Programming and Scripting

Read input from Keyboard, do not proceed if no input

Hi, I am working on a script, which requests users to enter input. Ex: read -p "Please enter your email id:" email I don't want users skipping this entry, this has to be mandatory.I dont want to proceed without input. I can do a check if variable $email is empty and proceed if not.But, i... (7 Replies)
Discussion started by: aravindadla
7 Replies

8. Shell Programming and Scripting

How to get the shell script to read the .txt file as an input/data?

i have written my shell script in notepad however i am struggling to pass the data file to be read to the script the data file is of .txt format. My target is to run the shell script from the terminal and pass 3 arguments e.g. polg@DESKTOP-BVPDC5C:~/CS1420/coursework$ bash valsplit.sh input.txt... (11 Replies)
Discussion started by: Gurdza32
11 Replies

9. Shell Programming and Scripting

Awk, sed, shell all words in INPUT.txt find in column1 of TABLE.txt and replce with column2 in

Hi dears i have text file like this: INPUT.txt 001_1_173 j nuh ]az 001_1_174 j ]esma. nuh ]/.xori . . . and have another text like this TABLE.txt j j nuh word1... (6 Replies)
Discussion started by: alii
6 Replies

10. Shell Programming and Scripting

Search last column of INPUT.txt in TABLEs text and add correspond columns to INPUT.txt

Hi dears i use bash shell i have INPUT.txt like this number of columns different in one some row have 12 , some 11 columns see last column INPUT.txt CodeGender Age Grade Dialect Session Sentence Start End Length Phonemic Phonetic 63 M 27 BS/BA TEHRANI 3 4 298320 310050... (2 Replies)
Discussion started by: alii
2 Replies
DISTCHECK(1)							    DOSE Tools							      DISTCHECK(1)

NAME
dose-distcheck - check installability of packages according to metadata SYNOPSIS
dose-distcheck [option] ... uri dose-debcheck [option] ... [file] dose-rpmcheck [option] ... [file] dose-eclipsecheck [option] ... [file] DESCRIPTION
dose-distcheck determines, for a set of package control stanzas, called the repository, whether packages of the repository can be installed relative to the repository according to the inter-package relationsships expressed in the package control stanzas. The exact set of relevant control fields and their meaning depends on the type of the repository. The constraint solving algorithm is complete, that is it finds a solution whenever there exists one, even for multiple disjunctive dependencies and deep package conflicts. This problem is computationally infeasible in theory (that is, NP-complete), but can be solved very efficiently for package repositories that actually occur in practice. Packages are split into foreground and background: only packages in the foreground are checked for installability, but dependencies may be satisfied by foreground packages and by background packages. By default, all packages are in the foreground. Input Specification Currently supported input types are debian, rpm, and eclipse. The dose-distcheck tool expects its input specifiations in the form type://pathname where type is one of deb, synthesis, hdlist or eclipse, and pathname is the pathname of a file containing the input. The package metadata found in that file must correspond to the type given in the URI. When invoked as dose-typecheck then the type of input is assumed to be type, and repositories (in positional arguments or in the values of options --fg and --bg) are simply given in form of a pathname of a file containing the repository. If no positional argument is given then input is read from standard input. dose-distcheck also compressed files (.gz , .bz2) as positional arguments. Input read on standard input cannot be in compressed form. Input Formats Debian The input file has to contain stanzas in the format of deb-control(5), separated by one blank line. For instance, the Packages files as found on a Debian mirror server, or in the directory /var/lib/apt/lists/ of a Debian system, are suitable as input to dose-debcheck. Installability of packages is analyzed according to their Depends, Conflicts, and Provides fields with their meaning as of Debian policy version 3.9.0. Pre-depends are treated like Depends, and Breaks are treated like Conflicts. If the input contains several packages with the same values of name, version, and architecture than only the last of these is taken into account, and a warning is issued. In the case of Debian, it is not possible to install at the same time two packages with the same name but different versions. Rpm The input file can be either a synthesis file or a hdlist file. By default dose-rpmcheck expects a synthesis file as input. To specify a hdlist file dose-distcheck must be invoked with a file argument of the form hdlist:// Eclipse The input is an 822 file containing the encoding of OSGi plugins content.xml files. OPTIONS
OPTIONS CONTROLLING FOREGROUND AND BACKGROUND --fg=file Add packages in file to the foreground. --bg=file Add packages in file to the background. --checkonly package [,package] ... Takes a comma-separated list of package names, each of them possibly with a version constraint, as argument. The foreground is constituted of all packages that match any of the expressions, all other packages are pushed into the background. The initial distinction between foreground and background is ignored. This option must not be combined with --coinst. Example: --checkonly "libc6 , 2ping (= 1.2.3-1)" --coinst package [,package] ... Takes a comma-separated list of package names, each of them possibly with a version constraint, as argument. If this list consists of n expressions, then co-installability will be checked independently for each set of n packages where the i-th element of the set matches the i-th expression. The initial distinction between foreground and background is ignored. This option must not be combined with --checkonly. Example: --coinst "a (>1), b" If we have package a in versions 1, 2 and 3, and package b in versions 11 and 12, then this will check 4 pairs of packages for co- installability, namely (a=2,b=11), (a=2,b=12), (a=3,b=11) and (a=3,b=12). DEBIAN SPECIFIC OPTIONS Multi-arch annotations are correctly considered by distcheck. Packages whose's architecture is neither the native architecture nor in the list of foreign architectures (see below) are ignored. --deb-native-arch=name Specify the native architecture. The default behavior is to deduce the native architecture from the first package stanza in the input that has an architecture different from all. --deb-foreign-archs=name [,name] ... Specify a comma-separated list of foreign architectures. The default is an empty list of foreign architectures. --deb-ignore-essential Do not consider essential packages as part of the installation problem. By default all essential package are considered as part of the installation problem for all packages, that is a package is installable if and only if it is co-installable with all essential packages. This option allows the user to test the installability with no essential packages installed. OPTIONS FOR FILTERING THE INPUT --latest Only the latest version of each package is kept, older versions of packages are ignored. OPTIONS CONTROLLING OUTPUT -f, --failures List all packages that are found not to be installable. -s, --successes List all packages that are found to be installable. May be used together with --failures, in this case the value of the status field in the output allows to distinguish installable from non-installable packages. -e, --explain Give explanations. If used together with --failures then the explanation consists of dependency chains leading to a conflict or a dependency on a missing package. If used together with --successes then the explanation consists of an installation set. -m, --explain-minimal For all packages P that are found installable, and when used in conjunction with --success, prints a reduced instllation set containing only those packages in the dependency cone of P. It has no effect together with together with --failures. --summary Gives a more detailed summary of the findings. -ofile Send output to file. MISC OPTIONS -v Enable info / warnings / debug messages. This option may be repeated up to three times in order to increase verbosity. --quiet Do not print warning messages --progress Show progress bars. --timers Show timing information. -h, --help Display this list of options. --version Show program version and exit. EXIT CODES
Exit codes 0-63 indicate a normal termination of the program, codes 64-127 indicate abnormal termination of the program (such as parse errors, I/O errors). In case of normal program termination: - exit code 0 indicates that all foreground packages are found installable; - exit code 1 indicates that at least one foreground package is found uninstallable. EXAMPLE
Check which packages in a particular distribution are not installable and why: dose-distcheck -v -f -e --bg deb:///var/lib/apt/lists/ftp.fr.debian.org_debian_dists_sid_main_binary-amd64_Packages --bg deb:///var/lib/apt/lists/ftp.fr.debian.org_debian_dists_sid_non-free_binary-amd64_Packages --fg deb:///var/lib/apt/lists/ftp.fr.debian.org_debian_dists_sid_contrib_binary-amd64_Packages where Packages is the file pertaining to that distribution, as for instance found in the directory /var/lib/apt/lists. Check which packages in contrib are not installable when dependencies may be satisfied from main: dose-debcheck --failures --bg=main_Packages contrib_Packages NOTE
Dose-distcheck is a complete reimplementation of edos-debcheck, written for the EDOS project. AUTHOR
The first version of debcheck was written by Jerome Vouillon for the EDOS project. The current version has been rewritten on the basis of the dose3 library by Pietro Abate. SEE ALSO
deb-control(5) <http://www.edos-project.org> is the home page of the EDOS project. <http://www.mancoosi.org> is the home page of the Mancoosi project. dose3 3.0.2 2012-10-03 DISTCHECK(1)
All times are GMT -4. The time now is 06:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy