Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Sed split directory
Name: weronpc Date: February 25, 2008 at 14:54:07 Pacific OS: unix CPU/Ram: 512 Product: na
Comment:
lets say pwd is "/u/mchi/test" How do I use sed to get the value test? Here is what I tried and none returned test. 1) pwd | sed 's/*[a-zA-Z]\///g' /u/mchi/test 2) pwd | sed 's/[a-zA-Z]\///g' /test
Summary: i have a variable which store the path, such as "/home/user" now i want to print out the current directory from pwd without showing "/home/user/", such as "/home/user/doc/" just print out "doc/" can i...
Summary: It is probably a variable not set properly or directory permission issue, not a sed issue. Try these: echo $transportdir/$dest ls $transportdir/$dest touch $transportdir/$dest/myfile ...
Summary: Can you please post a sample of the data. Does the abcd.sed script really only contain --------------------- (ECONF2) run ECONF2 --------------------- The cat command would append multiple files toget...