04-20-2012
Sorry, I left the OS type out. I am trying to compile this on Solaris 10.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there!
People, i'm a new unix user, and i'm having some problems...
I'm updating some scripts (korn shell) in different servers. I use telnet to access these servers and emacs to write the scripts. One of them is an HP, and there´s no problem. But the other one is an AIX, and when i call... (1 Reply)
Discussion started by: caiohn
1 Replies
2. Shell Programming and Scripting
Hi all,
I am new to unix and wanted to replace the string consisting \ with nothing.
I tried the following but did not help.
for y in `ls DIV*`;
do
sed s/C:\\Project\\AML\\bin//g $y > temp
mv temp $y
done
I actually want to remove any occurance of C:\Project\ABC\bin in... (4 Replies)
Discussion started by: cv_pan
4 Replies
3. Shell Programming and Scripting
How do i find files in more than one directory? I searched through forums, but could not land into the right thread.
I tried something like
find dir1|dir2 -name file1
but it doesn't work. Please suggest. (5 Replies)
Discussion started by: krishmaths
5 Replies
4. Solaris
How to find al the user's home directories? (2 Replies)
Discussion started by: a2156z
2 Replies
5. Shell Programming and Scripting
I have a script that generates a variable with the location of a file and its complete path. What i want to do is to "cd" to the directory where that file is located using the path name of the file. GIS has absolutely failed me.
For example when i run my script it generates a variable called... (1 Reply)
Discussion started by: Knome
1 Replies
6. Shell Programming and Scripting
I have 100+ python files in a single directory. I need to replace a specific path occurrence with a variable name.
Following are the find and the replace strings:
Findstring--"projects\\Debugger\\debugger_dp8051_01\\debugger_dp8051_01.cywrk"
Replacestring--self.projpath
I tried... (5 Replies)
Discussion started by: noorsam
5 Replies
7. Shell Programming and Scripting
Dear Members,
I have a list of xml files like
abc.xml.table
prq.xml.table
...
..
.
in a txt file.
Now I have to search the file(s) in all directories and sub-directories and print the full path of file in a output txt file.
Please help me with the script or command to do so.
... (11 Replies)
Discussion started by: Yoodit
11 Replies
8. Shell Programming and Scripting
Using Sol 10 + KSH.
I need to run a find command on the whole system "/" and exclude a bunch of explicit directories and files that may or may not be on each system.
I cannot use the -name because i dont want to exclude all dirs named just specific paths.
-path/-wholename is not an option... (2 Replies)
Discussion started by: nitrobass24
2 Replies
9. UNIX Desktop Questions & Answers
Dear All,
I have many sub-folders but each of them have a file with same name but different data.
I want to either move or copy them into a new folder but they need to have the path of where they are coming as part of their name...
I have managed to find the files but dont know how to change... (2 Replies)
Discussion started by: A-V
2 Replies
10. Shell Programming and Scripting
When I specify a directory by name the leading ./ is not shown:
$ find somedir/
somedir/a.bin
somedir/target/out.binBut when I specify current dir it adds the ./ to the beginning of each result:
$ find . | grep somedir
./somedir/a.bin
./somedir/target/out.binIs there any particular reason why... (2 Replies)
Discussion started by: Tribe
2 Replies
LEARN ABOUT DEBIAN
depend
depend(4) File Formats depend(4)
NAME
depend - software dependencies file
DESCRIPTION
depend is an ASCII file used to specify information concerning software dependencies for a particular package. The file is created by a
software developer.
Each entry in the depend file describes a single software package. The instance of the package is described after the entry line by giving
the package architecture and/or version. The format of each entry and subsequent instance definition is:
type pkg name
(arch)version
(arch)version
...
The fields are:
type Defines the dependency type. Must be one of the following characters:
P Indicates a prerequisite for installation; for example, the referenced package or versions must be installed.
I Implies that the existence of the indicated package or version is incompatible.
R Indicates a reverse dependency. Instead of defining the package's own dependencies, this designates that another
package depends on this one. This type should be used only when an old package does not have a depend file, but
relies on the newer package nonetheless. Therefore, the present package should not be removed if the designated
old package is still on the system since, if it is removed, the old package will no longer work.
pkg Indicates the package abbreviation.
name Specifies the full package name.
(arch)version Specifies a particular instance of the software. A version name cannot begin with a left parenthesis. The instance specifi-
cations, both (arch) and version, are completely optional, but each (arch)version pair must begin on a new line that begins
with white space. A null version set equates to any version of the indicated package.
EXAMPLES
Example 1: Sample of depend file
Here are the contents of a sample depend file, for the SUNWftpr (FTP Server) package, stored in /var/sadm/pkg/SUNWftpr/install:
P SUNWcar Core Architecture, (Root)
P SUNWkvm Core Architecture, (Kvm)
P SUNWcsr Core Solaris, (Root)
P SUNWcsu Core Solaris, (Usr)
P SUNWcsd Core Solaris Devices
P SUNWcsl Core Solaris Libraries
R SUNWftpu FTP Server, (Usr)
SEE ALSO
pkginfo(4)
Application Packaging Developer's Guide
SunOS 5.10 4 Oct 1996 depend(4)