- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP and NTRANS
Operating System - HP-UX
1753664
Members
5919
Online
108798
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 11:35 AM
тАО01-26-2009 11:35 AM
FTP and NTRANS
Have a remote file named "PHP - Monthly_Billing_Activity_BR&A - December 2008_Flat_Format.csv" (without the double quotes) is there a way to get it into something like "BRA_December-2008" during the MGET command?
Then it would easier to then rename and save as 20081231BRA in HPUX
Then it would easier to then rename and save as 20081231BRA in HPUX
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 01:03 PM
тАО01-26-2009 01:03 PM
Re: FTP and NTRANS
So far as I know, mget does not give you a
chance to supply any destination names.
"man ftp".
If you insist on using mget, I see no way to
get a different name, other than to rename it
after it arrives. (Or change the name at the
source. Or create a link there with the
desired name, ...)
chance to supply any destination names.
"man ftp".
If you insist on using mget, I see no way to
get a different name, other than to rename it
after it arrives. (Or change the name at the
source. Or create a link there with the
desired name, ...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 01:21 PM
тАО01-26-2009 01:21 PM
Re: FTP and NTRANS
Sorry, didn't mean to state rename from FTP. What I need it to remove/change the embedded spaces,hypen and underscores. They create problems (for me) in programs when trying to rename in HPUX to something like "BRA_December-2008"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 01:46 PM
тАО01-26-2009 01:46 PM
Re: FTP and NTRANS
Use quotation marks or apostrophes?
bash$ echo fred > 'a b c d'
bash$ ls -l
total 0
-rw-r----- 1 SMS 40 5 Jan 26 15:40 a b c d
bash$ mv 'a b c d' a_b_c_d
bash$ ls -l
total 0
-rw-r----- 1 SMS 40 5 Jan 26 15:40 a_b_c_d
Why do you think that "-" and "_" cause
trouble?
bash$ echo fred > 'a b c d e'
bash$ src='a b c d e'
bash$ dst=` echo "$src" | sed -e 's/ /_/g' `
bash$ echo $dst
a_b_c_d__e
bash$ mv "$src" "$dst"
bash$ ls -l
total 0
-rw-r----- 1 SMS 40 5 Jan 26 15:45 a_b_c_d__e
bash$ echo fred > 'a b c d'
bash$ ls -l
total 0
-rw-r----- 1 SMS 40 5 Jan 26 15:40 a b c d
bash$ mv 'a b c d' a_b_c_d
bash$ ls -l
total 0
-rw-r----- 1 SMS 40 5 Jan 26 15:40 a_b_c_d
Why do you think that "-" and "_" cause
trouble?
bash$ echo fred > 'a b c d e'
bash$ src='a b c d e'
bash$ dst=` echo "$src" | sed -e 's/ /_/g' `
bash$ echo $dst
a_b_c_d__e
bash$ mv "$src" "$dst"
bash$ ls -l
total 0
-rw-r----- 1 SMS 40 5 Jan 26 15:45 a_b_c_d__e
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP