LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2007, 01:59 PM   #1
werfer
Member
 
Registered: Sep 2003
Posts: 52

Rep: Reputation: 15
Problem tranferring strange files via ftp


Hi there,

I recently got a harddrive from a friend which is full to the max with jpg, png, gif, etc. A collection of all his vacation photos. He asked me if I could transfer them to his webserver.

No problem, I thought, put the harddrive into an old machine of mine, started my MC, and mounted his webserver via ftp. I then told MC to tranfer all the phtotos onto the webserver. I got loads of error messages, telling me that the photos are not where they were supposed to be.

I checked his harddrive more thoroughly, and found that his stupid camera, due to some obscure reasons, puts a space in front of every picture.

In other words, instead of "wife4.jpg," I have " wife4.jpg." Grrrr.... obviously, MC reads the filename, ignoring the space, so that he has "wife4.jpg" on his list for copying. But then, when he actually wants to touch the file in order to move him, he doesn't see it, because its real name is " wife4.jpg."

Anyone have a suggestion? Can I get ftp to read the space AND copy the space? Or better yet, anyone know of a script to rename all the blank$name.jpg into $name.jpg. That would be neater, I guess.
 
Old 12-04-2007, 03:32 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Maybe hack up one of these awk "whitespace" removal lines to work on the filenames as you're reading them.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange FTP Problem mcupples Linux - Server 3 04-05-2007 10:37 AM
a strange problem when converting video files to dvd-compatable files d00bid00b Slackware 0 12-01-2006 11:43 AM
strange ftp problem nix_crazy Linux - Networking 5 04-12-2005 08:36 PM
Strange problem while installing via ftp Pauluso Linux - Networking 1 10-18-2004 09:30 AM
ssh terminal: tranferring files moschi Linux - Newbie 1 03-24-2004 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration