How Can I Display Unix Path All The Time
currently my profile look like this
# @(#)local.profile 1.8 99/03/26 SMI
stty istrip
PATH=/usr/bin:/usr/ucb:/etc:.
export PATH
# If possible, start the windows system
#
if ; then
if
then
if ; then
... (1 Reply)
How Can I Display Unix Path All The Time
currently my profile look like this
# @(#)local.profile 1.8 99/03/26 SMI
stty istrip
PATH=/usr/bin:/usr/ucb:/etc:.
export PATH
# If possible, start the windows system
#
if ; then
if
then
if ; then
OPENWINHOME=/usr/openwin
export... (1 Reply)
How can i perform a ls or other command to list the full paths of files from a ls?
Looked through the man page for ls, no luck
$ cd /tmp/
$ ls -l
total 6
drwx------ 2 root root 4096 Nov 7 2008 keyring-7b5rMv
drwx------ 2 bcr bcr 4096 Dec 7 2007 keyring-cGhir8
$
I'd be looking for... (1 Reply)
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
I'm trying to replace path which is part of variable inside script file:
FROM:
ABC_HOME=$ABC_ROOT/abc/1.0
TO:
ABC_HOME=$ABC_ROOT/abc/1.5
I'm using this:
perl -pi -e 's\ABC_HOME=$ABC_ROOT/abc/1.0\ABC_HOME=$ABC_ROOT/abc/1.5\g' /apps/scripts/test.sh
This command is not working because... (2 Replies)
Suppose I am a Unix user, not a root.
I can see all commands in running by ps -elf, or some similar commands. Such commands may be submit by other Unix users.
Is there a way that I can display those commands with their full parameters/options. For example, I can see a user is running "ls"... (3 Replies)
which(1) User Commands which(1)NAME
which - locate a command and display its pathname or alias
SYNOPSIS
which [name]...
DESCRIPTION
which takes a list of names and determines which alias or utility would be executed had these names been given as commands.
For each name operand, if it names an alias the alias is expanded. Otherwise the user's path is searched for a utility name matching name.
Aliases are taken from the user's .cshrc file. path is taken from the current shell execution environment.
OPERANDS
The following operand is supported:
name The name of a command to be located.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 One or more name operands were not located or an error occurred.
FILES
~/.cshrc source of aliases and path values
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), attributes(5)DIAGNOSTICS
A diagnostic is given for names which are aliased to more than a single word, or if an executable file with the argument name was not found
in the path.
NOTES
The which utility is not a shell built-in command.
BUGS
To compensate for ~/.cshrc files in which aliases depend upon the prompt variable being set, which sets this variable to NULL. If the
~/.cshrc produces output or prompts for input when prompt is set, which can produce some strange results.
SunOS 5.11 30 Mar 2005 which(1)