I have a directory and following are its contents:
/ppp/ndm/ndm_ari
drwxr-xr-x WEB-INF
-rw-r--r-- about.jsp
-rw-r--r-- index.jsp
-rw-r--r-- help_docs.jsp
Can someone please explain to what this expression will result in:
^/(.*)$ /ppp/ndm/ndm_ari/$1
I am assuming results of regular expression ^/(.*)$ will appended to /ppp/ndm/ndm_ari by using $1. But I just can't figure out what this regular expression will produce? Is there any way to write a shell script to see this in real time?
I tried ..but no success:
#!/bin/ksh
var = `grep '^/(.*)$' /ppp/ndm/ndm_ari/$1`
echo $var
No errors, but no results either.
Thx.
/ppp/ndm/ndm_ari
drwxr-xr-x WEB-INF
-rw-r--r-- about.jsp
-rw-r--r-- index.jsp
-rw-r--r-- help_docs.jsp
Can someone please explain to what this expression will result in:
^/(.*)$ /ppp/ndm/ndm_ari/$1
I am assuming results of regular expression ^/(.*)$ will appended to /ppp/ndm/ndm_ari by using $1. But I just can't figure out what this regular expression will produce? Is there any way to write a shell script to see this in real time?
I tried ..but no success:
#!/bin/ksh
var = `grep '^/(.*)$' /ppp/ndm/ndm_ari/$1`
echo $var
No errors, but no results either.
Thx.