02-18-2010
You could write a short script or alias to select lines that you want so that "aptitude search qt | grep ruby | scriptA 2 5" would pull out those two lines and put them in a hidden file that can be found by a second script. Then "scriptB sudo apt-get install" would run the install on every line of the file.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
In our unix environment I'm not able to locate where ssh is located.
can any one guide me in finding the location of this tool. (5 Replies)
Discussion started by: bishweshwar
5 Replies
2. Solaris
Does Solaris 10 have an equivalent to FreeBSD's `locate'?
If not, what is the best way to search for files (allowing regexp) throughout the system? (5 Replies)
Discussion started by: Russell
5 Replies
3. Shell Programming and Scripting
hello all
im trying to use in sun Solaris the information received from the top command
now i several machines that dont have install the top program so when im running the script im geting error
saying after im running this code :
set MemoryInfo = `top | grep Memory`
if (... (2 Replies)
Discussion started by: umen
2 Replies
4. Shell Programming and Scripting
Hi All,
Please advise me how to make a copy of file from a list and store in one particular location?
For example , I have aaa.txt which contains as below, But, those *usg files might be randomly store in different location....
> cat aaa.txt
adc.usg
dfdjkf.usg
ugjfk.usg
And I want... (3 Replies)
Discussion started by: cedrichiu
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am aware of the command locate/slocate. But when I try to search the file which is located in /tmp. Its not able to get it. I tried by updating the database also with the command updatedb.
Is there any consern that the command 'locate' dont check /tmp???
And I knew that locate is the... (5 Replies)
Discussion started by: praveen_b744
5 Replies
6. Linux
I m new to the linux environment.Help me with ur suggestions.
How can i obtain the file names alone from ls -ltr output??
And those files should have been created before three months and earlier than that..
Thanks and wishes,
Rupaa. (8 Replies)
Discussion started by: Rupaa
8 Replies
7. UNIX for Advanced & Expert Users
Hello, i am trying to make an ssh connection from one server to another and invoke a script on another server.
while doing this i want to do a passwordless ssh connection for the same, for which i have used the following command
ssh-keygen -t rsa
ssh-copy-id -i... (3 Replies)
Discussion started by: arwant
3 Replies
8. Shell Programming and Scripting
Hi,
I have a folder with multiple (< 33) .log files.
And I have to copy the lines between two patterns from all the .log files to a new file.
(script file with a loop?)
Thanks in advance.
1.log
...
..
xx1> begin
...
..
..
>>> Total: 2 Alarms
..
.. (17 Replies)
Discussion started by: AK47
17 Replies
9. Red Hat
my os details as follow
bash-3.2$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
I run the following and encounter the following error
bash-3.2$ mysqlhotcopy -?
Can't locate DBI.pm in @INC (@INC contains:... (5 Replies)
Discussion started by: jediwannabe
5 Replies
10. Shell Programming and Scripting
#cat data.txt
file1 folder1
file2 thisforfile2
file3 thisfolderforfile3
lata4 folder4
step 1: create the folder first in column 2
for i in `awk '{print $2}' data.txt`
do
mkdir /home/data/$i
done
step 2: locate the files in column1 and stored them into a file
for i in... (17 Replies)
Discussion started by: kenshinhimura
17 Replies
LEARN ABOUT DEBIAN
apt-cudf-get
APT-CUDF-GET(8) DOSE Tools APT-CUDF-GET(8)
NAME
apt-cudf-get - wrapper for calling apt-get with external solvers
SYNOPSIS
apt-cudf-get [arguments]
DESCRIPTION
apt-cudf-get is a wrapper that allows to invoke apt-get with external solvers while ignoring apt's pinning.
All options are passed on to apt-get.
Normally, apt uses so-called pinning to select a candidate version of a package in case there are several versions available. This also
holds when calling apt-get with external solvers. However, when it is not possible to find a solution under this constraint, it may be
useful to relax pinning and to allow the external solver to choose among all available versions of packages in order to satisfy
dependencies, not only those that are selected by the pinning. This is precisely what apt-cudf-get does.
Note that, when using an external solver, the proposed solution may contain any available version of the packages that are given as
arguments to install on the command line without specifying a version qualifier.
For example
apt-cudf-get --solver aspcud install ocaml
may propose to install any available version of ocaml, while
apt-cudf-get --solver aspcud install ocaml=4.01.0
will only propose to install ocaml in version 4.01.0
AUTHOR
Pietro Abate and Roberto Di Cosmo
BUGS
Not all types of arguements to apt are correctly treated by this wrapper, in particular not the +pkg and -pkg shorthands for installation
and removal requests.
SEE ALSO
apt-get(8), apt-cudf(1), apt-cudf.conf(5), update-cudf-solvers(8), README.cudf-solvers
<file:///usr/share/doc/apt-cudf/README.cudf-solvers>, README.Debian <file:///usr/share/doc/apt-cudf/README.Debian>
dose3 3.0.2 2012-06-25 APT-CUDF-GET(8)