We crossed posts and I didn't see the error. In the statement name = = ip, ip2 = "" the double = = should just be a single, and one added between ip and ip2; looks like I cut and pasted a comma in there too.-- happy fingers. Sorry about that!
So I'm stumped.
First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes.
I have a text file (file_source) of terms, each line... (3 Replies)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (4 Replies)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (1 Reply)
Hi All
I have written the following script:
#!/bin/ksh
while read cmdline
do
echo `$cmdline`
pid="$cmdline"
done<commands.txt
===========
commands.txt contains:
ps -ef | grep abc | grep xyz |awk '{print $2};
My objective is to store the o/p of the command in a variable and do... (8 Replies)
Hi,
I am running this command through a shell script and getting the error mentioned in the subject line:
testing.awk -f x.txt TNAME
My testing.awk file contains something like
++++++++++++++++++
#!/usr/bin/awk -f
BEGIN{
TAB_NAME="INSERT_ONE_" ARGV ;
}
if ( $1=="JAM_ONE" &&... (1 Reply)
Need to develop a unix shell script for the below requirement and I need your assistance:
1) search for file.log and file.bad file in a directory and read them
2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file
4) concatinate each row from bad file as... (3 Replies)
hi
I have a shell script say primary.sh . There is a file called params
my scenario is
primary.sh should read all the values and echo it
for example
i should pass like
$primary.sh params
output would be
Abc
... (2 Replies)
Hi Gurus,
I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file.
eg. if file a.txt exists then send a mail to a@a.com
simillary for b.txt,c.txt etc.
Thanks for your help,
Nimu (6 Replies)
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance (4 Replies)
MADISON-LITE(1) Debian General Commands Manual MADISON-LITE(1)NAME
madison-lite -- display versions of Debian packages in an archive
SYNOPSIS
madison-lite [--config-file file] [--mirror directory] [--nocache] [--update] [-S] [-r] [-a architecture[,...]] [-c component[,...]]
[-s suite[,...]] package [...]
DESCRIPTION
madison-lite inspects a local Debian package archive and displays the versions of the given packages found in each suite (for example,
stable, testing, or unstable) in a brief but easily human-readable form. It aims to be a drop-in replacement for the madison utility (since
renamed to dak ls), from the dak archive management suite that runs on the central Debian archive systems, but one which can run without
access to the archive's SQL database.
The following options are available:
--config-file file
Read configuration from file, and ignore the system configuration file (see CONFIGURATION below).
--mirror directory
Quick configuration: use directory as the top level of the Debian mirror.
--nocache
Normally, parts of the Packages and Sources files in the archive are cached in ~/.madison-lite/cache for speed. This option disables
that behaviour.
--update
Force caches of Packages and Sources files to be updated.
-S, --source-and-binary
Interpret package as a source package name, and display versions of any associated binary packages as well as of the source package.
-r, --regex
Interpret package as a Perl regular expression anchored at the start of the package name rather than as an exact name. Make sure to
quote any shell metacharacters such as '*' or '?' if necessary.
-a, --architecture architecture[,...]
Display only entries for packages built for these architectures. Separate multiple architectures with commas or spaces.
-c, --component component[,...]
Display only entries in the given components. Separate multiple components with commas or spaces.
-s, --suite suite[,...]
Display only entries in the given suites. Separate multiple suites with commas or spaces.
CONFIGURATION
madison-lite reads configuration information from the file named by --config-file, or, if that is not supplied, from the first of
~/.madison-lite/config and /etc/madison-lite/config that exists.
The following configuration directives are recognized:
mirror directory
Set the top-level directory of the local Debian mirror. Relative directories in the suite directive are interpreted relative to this
directory. Defaults to the current directory.
suite name directory [component [...]]
Defines the suite name based at directory, containing the specified components (defaulting to all subdirectories of directory). Output
is displayed following the order of suite directives in the configuration file. If no suite directives are present, then every subdi-
rectory of the dists directory under mirror is treated as a suite, with all of their subdirectories as components.
The Debian archive is structured such that the subdirectories of each suite directory identify components (such as main). Each of
those in turn has subdirectories for each architecture (binary-i386, and so on), each of which contains any or all of Packages,
Packages.gz, and Packages.bz2 files listing binary packages; it also has a subdirectory called source which contains any or all of
Sources, Sources.gz, and Sources.bz2 files listing source packages.
The configuration file may contain comment lines, which start with a '#' character.
EXAMPLES
Show versions of the coreutils package:
$ madison-lite coreutils
Show versions of all binary packages on powerpc produced by the glibc source package:
$ madison-lite -S -a powerpc glibc
Show versions of all packages in the unstable suite whose names begin with 'man':
$ madison-lite -s unstable -r 'man.*'
An example configuration file for a simple local mirror:
mirror /mirror/debian
suite unstable dists/unstable main
suite unstable-non-US non-US/dists/unstable non-US/main
SEE ALSO dpkg-scanpackages(8), dpkg-scansources(8), apt-ftparchive(1)AUTHORS
madison-lite was written by Colin Watson <cjwatson@debian.org>. The interface mirrors that of madison (since renamed to dak ls), written by
James Troup.
Debian August 1, 2007 Debian