![]() |
| ||
| splitting a ftp connection string to it's parts Hello everybody, I've got a small problem I need the following string to be split into it's parts: ftp://user:pass@host/paththe result should be smth like: $USER = userSomebody has help for me? Would be nice Alternative I could also use a ftp shell enabled ftp client that "eats" the whole string (like old ncftp versions) I can't use ncftpget / put because: 1. I want to delete files on the target server 2. The target server is a microsoft machine and doesnt work with with ncftput :mad: kind regards Michel |
| ||
| Re: splitting a ftp connection string to it's parts echo 'ftp://user:pass@host/path' | sed 's#[|:;>@/]# #g' | read dummy usr pwd hst pth |
| ||
| Re: splitting a ftp connection string to it's parts or else you can use the cut -c option to cut the string into its parts. |
| All times are GMT -4. The time now is 6:42 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC