LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2011, 08:25 PM   #16
sdgalbo
Member
 
Registered: Feb 2004
Posts: 39

Original Poster
Rep: Reputation: 0

Hey carolinason,

On my flash drive, the two files are in the same folder, named very similarly, but with a bit different syntax like: <file.doc> and <._file.doc>

Could you explain what you mean by: "see if you can cat them in BASH." scuse my newbiness, but I'm not familiar with the terminology. Thanks.

sdgalbo
 
Old 09-08-2011, 08:32 PM   #17
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
cat http://linux.die.net/man/1/cat; only works for plain text files. A '.doc' is usually a binary format, so this (probably) won't work.
Try the file cmd http://linux.die.net/man/1/file to determine actual filetype from Linux' pt of view BEFORE using cat.
 
Old 09-08-2011, 08:36 PM   #18
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 82

Rep: Reputation: 5
[Sorry chrism01, above, our posts crossed. I didn't see yours before I posted mine below]

She means go to a shell prompt using a terminal window (where you normally type commands etc, with the $ prompt), and then type the command:

Code:
$ cat filename
... which, if they were regular text files would display the file contents in plain text ... but, given that .doc and .pdf are binary files I'm not sure how helpful that will prove.

You could also accomplish the same thing using the "less" command, or the "more" command, instead of using "cat."

Last edited by cheddarcheese; 09-08-2011 at 08:38 PM.
 
Old 09-09-2011, 10:21 AM   #19
sdgalbo
Member
 
Registered: Feb 2004
Posts: 39

Original Poster
Rep: Reputation: 0
Thanks guys, I'll try your suggestions.

sdg
 
Old 09-13-2011, 07:01 PM   #20
sdgalbo
Member
 
Registered: Feb 2004
Posts: 39

Original Poster
Rep: Reputation: 0
One last post here:

I've come to the conclusion that the text files on the flash drive were corrupted because the mac did not eject the flash drive properly. I tried opening the flash drive in my daughter's powerbook and it did the same thing. I had forgotten that the same thing happened on the ppc iMac. I tried ejecting several times and when it would not safely eject the flash drive, I shut off the computer, thinking that would do the trick. Evidently, that is when the files were corrupted. Funny thing is, a higher percentage of files would open on my daughter's osx mac than on my linux ppc imac. This one is solved the hard way : (

Thanks for all the advice anyway,

sdgalbo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Find which files were transferred? szboardstretcher Linux - General 9 12-02-2010 04:10 PM
USB flash drive to move files between my linux and windows computers tehoverlord Linux - Hardware 1 06-13-2008 01:56 PM
Windows can't open files transferred thro' ProFTPd zatka Linux - Networking 3 02-08-2005 08:35 AM


All times are GMT -5. The time now is 12:09 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration