Results 1 to 3 of 3
Hello to all!
I need my script to do the following output display:
a20-15-04.html
to do this I need to use sed to extract the directory name from the path ...
- 04-15-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 2
seeking help on my script file!
Hello to all!
I need my script to do the following output display:
a20-15-04.html
to do this I need to use sed to extract the directory name from the path and combine it with date command output.
this is the syntax that i am using
pwd | sed -ne 's,^\(.*/\)\?\([^/]*\),\2,';date +%d-%m".html"
this is my output that I am getting:
uli101.a2
15-04.htm
any help is greatly appreciated!!
- 04-16-2010 #2Code:
date +"${PWD##*/}%d-%m".html
- 04-16-2010 #3Just Joined!
- Join Date
- Apr 2010
- Posts
- 2
thanks for the help!!


Reply With Quote