04-17-2012
It worked. But this is for a specified locations.. How would I specify my own locations. Also my sub-headers are actually 1000's not 3.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a text list of about 3,000 file names (image files), which exist on a server and that I want to copy over to another location. I understand the Unix cp code, but what's the string to have it copy multiple files based on an external list?
Many thanks! (4 Replies)
Discussion started by: rebornhonest
4 Replies
2. Shell Programming and Scripting
I am interested in finding out if there is a reliable and economical way for extracting user's location based on his ip address, using php
I tried to get the job done using ip2location.com, but I am not happy how it deals with result inconsistently. (2 Replies)
Discussion started by: siftin-com
2 Replies
3. OS X (Apple)
Hello all,
I've been searching for an answer but coming up with nothing so I figured I'd give it a shot and ask. After installing a fresh version of Leopard (with the latest updates) on a computer and then copying the user data back onto said computer, the location based printing doesn't work... (0 Replies)
Discussion started by: erodrigue
0 Replies
4. Shell Programming and Scripting
Hi,
I got long list of reference file (column one is refer to the header in input file; column 2 is info of start position in input file; column 3 is info of end position in input file;) shown as below:
read_2 10 15
read_3 5 8
read_1 4 10
.
.
.
Input file (huge file with total... (6 Replies)
Discussion started by: perl_beginner
6 Replies
5. Shell Programming and Scripting
AWK Command parse a file based on string.
I am trying to write a shell script to parse a file based on a string and move the content of the file to another file.
Here is scenario.
File content below
Mime-Version: 1.0
Content-Type: multipart/mixed;
... (2 Replies)
Discussion started by: aakishore
2 Replies
6. Web Development
HI guys/gals,
I like to add some personal touches to a welcome image on our mediawiki site, and have the welcome be displayed in the, presumed, language of the visitor.
Standard would be English, but if the IP or browser or OS is set to be in India, I want to display the message in Urdu for... (5 Replies)
Discussion started by: lawstudent
5 Replies
7. Web Development
Hi,
I am new to PHP and at first got a task where I need some clues and help.
So I am here.. The server is build to provide customized access for modules
as per location. If client location is US then it shows modules and pages
specific to US and if location is UK then it shows UK specific... (1 Reply)
Discussion started by: zing_foru
1 Replies
8. Shell Programming and Scripting
Hi Gurus,
I am a newbie to shell scripting and I am facing a problem right now.I have to automate the copy of files based on a priority.The scenario is as below:
1) There will be files from Mon-Fri with Mon file being named as abc_def_01_YYYYMMDD and Tue file being abc_def_02_YYYYMMDD and so... (4 Replies)
Discussion started by: vikramgk9
4 Replies
9. Shell Programming and Scripting
Hello,
Does anyone know how to parse whole line that has highest value in last column (c12), based on the string in column 6 (column VIRUS)
INPUT:
5 7 4 8 3 VIRUS1 5 5 HUMAN1 8 4 100
6 9 7 2 6 VIRUS1 6 0 HUMAN2 6 2 80
9 6 7 3 7 VIRUS1 9 7 HUMAN3 5 9 70
8 5 3 8 6 VIRUS2 8 6 HUMAN4 8 6 95... (3 Replies)
Discussion started by: narachaid
3 Replies
10. Shell Programming and Scripting
Hi
I need to find a way to automate the deployment of my apache configuration to a few servers. I make change frequently on apache/conf/... etc, and I usually do this manually by copying files to each servers(and country config path)and restart apache servers.Source file will be like... (1 Reply)
Discussion started by: naresh2389
1 Replies
LEARN ABOUT OPENSOLARIS
hash
hash(1) User Commands hash(1)
NAME
hash, rehash, unhash, hashstat - evaluate the internal hash table of the contents of directories
SYNOPSIS
/usr/bin/hash [utility]
/usr/bin/hash [-r]
sh
hash [-r] [name]...
csh
rehash
unhash
hashstat
ksh
hash [name]...
hash [-r]
DESCRIPTION
/usr/bin/hash
The /usr/bin/hash utility affects the way the current shell environment remembers the locations of utilities found. Depending on the argu-
ments specified, it adds utility locations to its list of remembered locations or it purges the contents of the list. When no arguments are
specified, it reports on the contents of the list. The -r option causes the shell to forget all remembered locations.
Utilities provided as built-ins to the shell are not reported by hash.
sh
For each name, the location in the search path of the command specified by name is determined and remembered by the shell. The -r option to
the hash built-in causes the shell to forget all remembered locations. If no arguments are given, hash provides information about remem-
bered commands. The Hits column of output is the number of times a command has been invoked by the shell process. The Cost column of output
is a measure of the work required to locate a command in the search path. If a command is found in a "relative" directory in the search
path, after changing to that directory, the stored location of that command is recalculated. Commands for which this will be done are indi-
cated by an asterisk (*) adjacent to the Hits information. Cost will be incremented when the recalculation is done.
csh
rehash recomputes the internal hash table of the contents of directories listed in the path environmental variable to account for new com-
mands added.
unhash disables the internal hash table.
hashstat prints a statistics line indicating how effective the internal hash table has been at locating commands (and avoiding execs). An
exec is attempted for each component of the path where the hash function indicates a possible hit and in each component that does not begin
with a '/'.
ksh
For each name, the location in the search path of the command specified by name is determined and remembered by the shell. The -r option to
the hash built-in causes the shell to forget all remembered locations. If no arguments are given, hash provides information about remem-
bered commands.
OPERANDS
The following operand is supported by hash:
utility The name of a utility to be searched for and added to the list of remembered locations.
OUTPUT
The standard output of hash is used when no arguments are specified. Its format is unspecified, but includes the pathname of each utility
in the list of remembered locations for the current shell environment. This list consists of those utilities named in previous hash invoca-
tions that have been invoked, and may contain those invoked and found through the normal command search process.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of hash: LANG, LC_ALL, LC_CTYPE, LC_MES-
SAGES, and NLSPATH.
PATH Determine the location of utility.
EXIT STATUS
The following exit values are returned by hash:
0 Successful completion.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
csh(1), ksh(1), sh(1), attributes(5), environ(5), standards(5)
SunOS 5.11 17 Jul 2002 hash(1)