path


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting path
# 15  
Old 02-21-2006
Quote:
Originally Posted by csaha
Let him paste " ls -ltra " o/p
op


-rw------- 1 teradm terascan 26 Feb 11 17:29 .dmrc
drwxr-xr-x 3 teradm terascan 4096 Feb 11 17:29 .mcop
drwxrwxr-x 4 teradm terascan 4096 Feb 11 17:29 .kde
drwx------ 2 teradm terascan 4096 Feb 11 17:29 .gnome2_private
drwx------ 2 teradm terascan 4096 Feb 11 17:29 .gnome
drwxr-x--- 2 teradm terascan 4096 Feb 11 17:29 .eggcups
drwx------ 2 teradm terascan 4096 Feb 11 17:29 .rhn-applet
drwx------ 3 teradm terascan 4096 Feb 11 17:52 .mozilla
-rw------- 1 teradm terascan 278 Feb 11 22:04 .recently-used
-r--r--r-- 1 teradm terascan 235 Feb 12 01:24 .mime.types
-r--r--r-- 1 teradm terascan 64 Feb 12 01:24 .mailcap
-r--r--r-- 1 teradm terascan 219 Feb 12 01:24 .login
-r--r--r-- 1 teradm terascan 13 Feb 12 01:24 .i18n
-r--r--r-- 1 teradm terascan 5111 Feb 12 01:24 .dtprofile
-r--r--r-- 1 teradm terascan 30 Feb 12 01:24 .cshrc
-r--r--r-- 1 teradm terascan 272 Feb 12 01:24 .bash_profile
-r--r--r-- 1 teradm terascan 24 Feb 12 01:24 .bash_logout
drwxr-xr-x 5 root root 4096 Feb 12 01:24 ..
drwxr-xr-x 2 teradm terascan 4096 Feb 13 08:46 .gstreamer-0.8
-rw------- 1 teradm terascan 31 Feb 13 19:16 .mcoprc
-rw------- 1 teradm terascan 21642 Feb 14 06:02 .face
-r--r--r-- 1 teradm terascan 288 Feb 14 06:50 .bashrc
-rw-rw-r-- 1 teradm terascan 227 Feb 15 06:50 cron_bkp
drwx------ 7 teradm terascan 4096 Feb 16 10:54 Mail
drwxrwxrwx 4 teradm terascan 4096 Feb 16 20:06 .terascan
-rw------- 1 teradm terascan 495 Feb 17 06:46 .rhn-applet.conf
-rwxrwxr-x 1 teradm terascan 401 Feb 18 05:05 vr_peek.sh
drwx------ 3 teradm terascan 4096 Feb 18 10:10 .thumbnails
drwx------ 3 teradm terascan 4096 Feb 18 10:24 Desktop
-rw-rw-r-- 1 teradm terascan 11297 Feb 20 04:57 sch_feb_20
-rw-rw-r-- 1 teradm terascan 1737 Feb 20 04:58 sch_feb20-a
-rw-rw-r-- 1 teradm terascan 307 Feb 20 07:32 .fonts.conf
-rw-r--r-- 1 teradm terascan 43653 Feb 20 07:41 cr-test.txt
drwxr-xr-x 2 teradm terascan 4096 Feb 20 10:46 .xine
-rw------- 1 teradm terascan 195 Feb 20 11:43 .ICEauthority
lrwxrwxrwx 1 teradm terascan 36 Feb 20 11:43 .DCOPserver_incois-a_:0 -> /home/teradm/.DCOPserver_incois-a__0
-rw-rw-r-- 1 teradm terascan 57 Feb 20 11:43 .DCOPserver_incois-a__0
drwxrwxr-x 2 teradm terascan 4096 Feb 20 11:43 .qt
drwx------ 3 teradm terascan 4096 Feb 20 11:43 .gconf
drwx------ 4 teradm terascan 4096 Feb 20 11:43 .gnome2
-rw-rw-r-- 1 teradm terascan 546 Feb 21 05:59 doubt_login
drwxrwxr-x 5 teradm terascan 4096 Feb 21 06:10 .evolution
-rwxrwxr-x 1 teradm terascan 84 Feb 21 06:20 test.sh
-rwxrwxr-x 1 teradm terascan 436 Feb 21 09:32 vr_peek.csh
-rw-r--r-- 1 teradm terascan 29 Feb 21 09:58 cron_log1.log
-rw-rw-r-- 1 teradm terascan 2124 Feb 21 10:48 comdenv
-rw-rw-r-- 1 teradm terascan 392 Feb 21 10:52 scriptenv
-rw-rw-r-- 1 teradm terascan 9399 Feb 21 10:52 sch_feb22-26-a
-rw-rw-r-- 1 teradm terascan 0 Feb 21 11:38 list
-rw-rw-r-- 1 teradm terascan 208 Feb 21 11:38 tempwho
drwx------ 2 teradm terascan 4096 Feb 21 11:40 .gconfd
-rw------- 1 teradm terascan 227 Feb 21 17:17 .Xauthority
-rw------- 1 teradm terascan 6333 Feb 22 02:09 .bash_history
-rwxrwxr-x 1 teradm terascan 156 Feb 22 03:32 test.csh
-rw-r--r-- 1 teradm terascan 25 Feb 22 03:35 cron_log2.log
-rw------- 1 teradm terascan 4885 Feb 22 03:40 .viminfo
drwx------ 20 teradm terascan 4096 Feb 22 03:40 .
[teradm@incois-a ~]$
# 16  
Old 02-22-2006
If you do , .bash_profile will be like this ...

$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME


add the PATH enry here ...
# 17  
Old 02-22-2006
i am sending modified bash_pr file
i have added /opt/terascan/bin pass at the end of file
but my script is not working.


please go through and give me assistance.

regards
rajan



# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

umask 0002

PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc

export BASH_ENV PATH

PATH= $PATH:/opt/terascan/bin

source /opt/terascan/etc/tscan.bash_profile
~
# 18  
Old 02-22-2006
Quote:
Originally Posted by csaha
If you do , .bash_profile will be like this ...

$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME


add the PATH enry here ...
=============================================

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

umask 0002

PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc

export BASH_ENV PATH

[B]PATH= $PATH:/opt/terascan/bin[/B]

source /opt/terascan/etc/tscan.bash_profile


i modified path variable above.

but script is not working.

please help
# 19  
Old 02-23-2006
Quote:
Originally Posted by rajan_ka1
=============================================

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

umask 0002

PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc

export BASH_ENV PATH

[B]PATH= $PATH:/opt/terascan/bin[/B]

source /opt/terascan/etc/tscan.bash_profile


i modified path variable above.

but script is not working.

please help

dear csaha,

please see the above code any give me suggestions.

regards
rajan
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Makefile missing include path Although the path exists and defined

i have make file which i try to make them generic but it keeps to compline it missing include directory this is the makefile : CXX=g++ CPPFAGS= -Wall -O0 -g -std=c++14 INCLUDES = -I/home/vagrant/libuv/include -Isrc LIBS_DIRS = -L/home/vagrant/libuv/build LDFLAGS=... (7 Replies)
Discussion started by: umen
7 Replies

2. UNIX for Beginners Questions & Answers

Convert Relative path to Absolute path, without changing directory to the file location.

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

3. UNIX for Advanced & Expert Users

Command to see the logical volume path, device mapper path and its corresponding dm device path

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)
Discussion started by: royalibrahim
2 Replies

4. Shell Programming and Scripting

Generate class path dynamically based on source path

Hi experts, I have multiple file names ending with .jsp located in $SOME_DIR, $SOME_DIR/f1/,$SOME_DIR/f2/test,$SOME_DIR/f3/fa and there are equivalent class files in $SOME_DIR/WEB-INF/classes/_pages,$SOME_DIR/WEB-INF/classes/_pages/_f1,... (0 Replies)
Discussion started by: oraclermanpt
0 Replies

5. Shell Programming and Scripting

Pattern match a path anywhere in the line and replace it with new path

I want to pattern match only path part from below and replace them with new path string. LoadModule jk_module /fldrA/fldrBaf/fldrCaa/modules/mod_jk.so JkWorkersFile /fldrA/fldrBaf/fldrCaa/config/OHS/ohs1/workers.properties JkLogFile... (4 Replies)
Discussion started by: kchinnam
4 Replies

6. Shell Programming and Scripting

Moving files from parent path to multiple child path using bash in efficient way

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)
Discussion started by: karthikgv417
6 Replies

7. Shell Programming and Scripting

Retrieve directory path from full file path through sh

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)
Discussion started by: royzlife
7 Replies

8. Shell Programming and Scripting

absolute path for a script ran with relative path

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)
Discussion started by: rss67
10 Replies

9. Shell Programming and Scripting

Executing Commands From Non-Standard Path (Changing user's PATH secretely???)

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)
Discussion started by: ramesh_samane
2 Replies

10. UNIX for Dummies Questions & Answers

vi - replacing a relative path with absolute path in a file

Hi, I have a file with about 60 lines of path: app-defaults/boxXYZ....... I want to change this to /my/path/goes/here/app-defaults/boxXYZ, but of course vi doesn't like the regualr :s/old/new/ command. Is there any other quick way to do this? Thanks ;) (2 Replies)
Discussion started by: Yinzer955i
2 Replies
Login or Register to Ask a Question