Here i have get to the value as '/root/logs/testing/' only without the last directory in a shell script. Do i need to use substr function here. Is there any other way around
If I the path to a directory, what command can I use to return the actual name of that directory.
test=`pwd`/folder1
> $test
folder1
I'd rather avoid anything with regular expressions. Any ideas? (1 Reply)
I have a script in which i want to print absolute path of the same script irrespective of path from where i run script.
I am using
test.sh:
echo "pwd : `pwd`"
echo "script name: $0"
echo "dirname: `dirname $0`"
when i run script from /my/test/dir/struct as ../test.sh the output i... (10 Replies)
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)
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
./local/share/test23.log
How can achieve that
a.) the leading "./" is omitted
and/or
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Hi, I am using the following code to check if directory is empty:
if ; then
echo "There is no files in the input"
sleep 60
fi
And indir path is:
/CH_ROOT/PRD/MAIN/INPUT/SDNTL/Interconnect
Only when I am using the above path I get an error "too many arguments". I tried with 10... (4 Replies)
Hello,
I am looking for a command that will give me the last directory name from a path
ex 1 :
/dir1/dir/2/dir3/
output needed
dir3
ex 2 :
/dir1/dir/2/dir3/dir4/
output needed
dir4 (1 Reply)
My input is as below :
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/loyal/IFIND.HELLO.WROC.txt
/splunk/scrubbed/triumph/ifind.triumph.txt
From the above input I want to extract the file names only .
Basically I want to... (5 Replies)
I'm writing python script to get the file-names in the current directory and file sizes .I'm able to get file list and their sizes but unable to pass them through command line. I want to use this script to execute on other directory and pass directory path with file name through command line. Any... (1 Reply)
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
What is the difference ../directory path and ./directory path in ksh? (1 Reply)
Discussion started by: TestKing
1 Replies
LEARN ABOUT DEBIAN
po_cos_naming_shell
PO_COS_NAMING_SHELL(1)PO_COS_NAMING_SHELL(1)NAME
po_cos_naming_shell - navigate and interact with the CORBA COS Naming implementation.
SYNOPSIS
po_cos_naming_shell [-s] [-i] [-I <IOR>] [-n]
All the command line switches are optional. Note: if no root directory initial reference is specified (see section OPTIONS), a new one is
created on startup.
DESCRIPTION po_cos_naming_shell(1) is very similar to the po_cos_naming(1) application. po_cos_naming_shell(1) can can act as standalone server that
supports the CORBA COS Naming specification. In addition, po_cos_naming_shell(1) provides an interactive shell which can be used to query
and manage the CORBA COS naming service.
po_cos_naming_shell(1) is able to retrive an existing root directory reference, or it can create a new one on application startup.
To display all available shell commands, type help on the command line.
OPTIONS po_cos_naming_shell(1) accepts the following command line switches:
-s
Register root directory initial reference.
-i
Retrieve root directory initial reference.
-I <IOR>
Use object denoted by IOR as root directory.
-n
Retrieve root directory by name.
AUTHOR
This manual page was written by Reto Buerki <reet@codelabs.ch> for the Debian GNU/Linux system (but may be used by others).
RESOURCES
Polyorb User Manual: http://www.adacore.com/wp-content/files/auto_update/polyorb-docs/polyorb_ug.html/
SEE ALSO po_cos_naming(1), po_names(1).
05/21/2009 PO_COS_NAMING_SHELL(1)