Could anyone help me in writing a single line code by either using (sed, awk, perl or whatever) to extract a specific path from the PATH environment variable?
for eg: suppose the PATH is being set as follows
I need to check whether the string "java" is there (consider "java" appears exactly one time for the time being), if it does exist I need to extract the path "/usr/bin/java".
Note: java path may appear at any position (i.e) it may be the first or the last path or appear in middle of the PATH setting. So my code should be efficient in handling all these
Hi:
I have a requirement as below:
I have some standard Unix commands modified and kept them in a directory say /usr/clsh/bin. For example I have a script named "ls" kept here which is modified version of "ls" (say it always gives long listing i.e. ls -l).
When any user logs on and types... (2 Replies)
Hi,
I have a environmental variables,
ORACLE_HOME=/u01/oracle/ORCL/db/tech/10.2.0
ORACLE_SID=ORCL
Now I need to create a variable and need to extract some part from ORACLE_HOME. I need to get the path from ORACLE_HOME till ORACLE_SID as /u01/oracle/ORCL. I may need to check also... (6 Replies)
Hi
I need a script which will remove a path from PATH environment variable. For example
$echo PATH
/usr/local/bin:/usr/bin:test/rmve:/usr/games
$echo rmv
test/rmve
Here I need a shell script which will remove rmv path (test/rmve) from PATH... (9 Replies)
I make this script that uses "strace" to trace programs. The script looks for files that the program opens. It looks like this
open("/lib/libtermcap.so.2", O_RDONLY) = 3
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
I want to extract the path without the quotes, preferably using grep and... (4 Replies)
Hello Folks,
I want to append a path in user's PATH variable which should be available in current session.
Background
Numerous persons will run a utility.
Aim is to add the absolute path of the utility the first time it runs so that next runs have the PATH in env & users can directly run... (6 Replies)
Hi I'm trying to select text between two lines, I'm using sed to to this, but I need to pass variables to it. For example
start="BEGIN /home/mavkoup/data"
end="END"
sed -n -e '/${start}/,/${end}/g' doesn't work. I've tried double quotes as well. I think there's a problem with the / in the... (4 Replies)
Hi All,
Can you please provide some pointers to move files from Base path to multiple paths in efficient way.Folder Structure is already created.
/Path/AdminUser/User1/1111/Reports/aaa.txt to /Path/User1/1111/Reports/aaa.txt
/Path/AdminUser/User1/2222/Reports/bbb.txt to... (6 Replies)
Currently I am using this laborious command
lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}'
Would like to know if there is any shorter method to get this mapping of... (2 Replies)
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)
Discussion started by: Sekhar419
4 Replies
LEARN ABOUT DEBIAN
freemind
FREEMIND(1) General Commands Manual FREEMIND(1)NAME
freemind -- A Java program for creating and viewing mindmaps.
SYNOPSIS
freemind [no_options]
DESCRIPTION
This manual page documents briefly the freemind command.
This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has docu-
mentation as a mindmap (see Help menu in FreeMind).
freemind is a program that allows to create and view so-called mindmaps, as well as export them to HTML or different image formats. It
also has a plugin concept to extend its functionality.
OPTIONS
This program does not have any option. Just start it!
ENVIRONMENT VARIABLES
DEBUG If this environment variable is set, freemind gives more information on how it finds its different elements, as well as some
other information.
JAVACMD Default value for the java virtual machine (the java command).
JAVA_BINDIR
If $JAVACMD is not set, the java virtual machine is searched under $JAVA_BINDIR/java.
JAVA_HOME If $JAVACMD and $JAVA_BINDIR are not set, the java virtual machine is searched under $JAVA_HOME/bin/java.
PATH If all $JAVA... environment variables fail, the java virtual machine command (java) is searched in the $PATH (with which).
CLASSPATH ADD_JARS
The $CLASSPATH variable also lets one specify additional jars, which is good, if you want to add a new Look&Feel jar (the motif
one is so ugly...). Alternatively, the content of $ADD_JARS will be prepended to $CLASSPATH.
FREEMIND_BASE_DIR
Directory where FreeMind searches for its plugins and libraries
FILES
/etc/freemind/freemindrc ~/.freemind/freemindrc
freemind tries to read its environment variables from /etc/freemind/freemindrc and ~/.freemind/freemindrc, so that specific set-
tings are possible at machine and user level.
/usr/bin/java
If all searches through environment variables fail, the java virtual machine is expected to be /usr/bin/java; if not, freemind
exits with an error.
SEE ALSO
The online documentation under http://freemind.sf.net/, especially the Linux related one under the Wiki page link http://freemind.source-
forge.net/wiki/index.php/FreeMind_on_Linux.
AUTHOR
This manual page was written by Eric Lavarde deb@zorglub.s.bawue.de for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub-
lished by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
FREEMIND(1)