Hi,
I logged in to a Sun unix box. I would like to know where my unix id is stored. So I did a "more /etc/passwd | grep <my unix id> but it did not show up. Where can I find my unix id and what is the command to see it?
Thanks in advanced,
XZOR (4 Replies)
I have 2 stored procedures to be executed.
if the sysdate is between 12 am and 6 am i want to run procedure 1 else procedure 2
How do i do it with variables for time in the script.
The DB is oracle
Thanks (7 Replies)
:rolleyes: hi there everybody,
i need help,... thanks anyway!
i am working on a very huge table with the name table1. the problem is that i know only one field name in this table...,
working with a ksh environment i don't know how to view the table to check out the field names :confused:.
... (4 Replies)
Hi,
I have the following requirement.
I have a unix table as below
progname par1 par2 par3 par4
PROG1 abc def 0012 ooo
PROG2 wed xas 0100 xxx
PROG3 kkk ppp 0004 ppp
Different programs(ex:PROG1,PROG2..) accesses this table and update... (5 Replies)
Hi,
My stored procedure returns a value.
How to retrieve the value and display in unix.
Stored procedure
CREATE OR REPLACE
PROCEDURE gohan(num INT) IS
BEGIN
DBMS_OUTPUT.PUT_LINE('My lucky number is ' || num);
END;
Unix Scripting i used
sqlplus -s... (7 Replies)
hi there, I am trying to create a stored procedure that i can pass the table name to and it will create a table with that name. but for some reason it creates with what i have defined as the variable name . In the case of the example below it creates a table called 'tname'
for example
... (6 Replies)
Hi,
I have an ascii file containing information. This file is n x m lines.
Is there a way to generate an ascii file where the information is stored as n x m table instead? The m columns should be tab separated.
Thanks a lot,
Sarah (11 Replies)
Hi all!
trying my best to parse a public site for information (ie fiscal year and turnover) about corporations.
Doing this by having a file with business name and registration number (search key)
the file bolag.txt currently looks like this
Burgundy 556732-7217
AcademicSearch 556406-9879... (11 Replies)
please write a shell script
Table
--------------------------
1 2 3 a b c
3 4 5 c d e
7 8 9 f g h
Output should be like this
---------------
1 2 3
3 4 5
7 8 9
a b c
c d e
f g h (1 Reply)
Split column data if the table has n number of column's with some record then how to split n number of colmn's line by line with records
Table
---------
Col1 col2 col3 col4 ....................col20
1 2 3 4 .................... 20
a b c d .................... v
... (11 Replies)
Discussion started by: Priti2277
11 Replies
LEARN ABOUT X11R4
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.10 17 Jul 2002 hash(1)