Solved

unix2dos dos2unix changing file access

Posted on 2004-08-10
2
269 Views
Last Modified: 2006-11-17
Is there any way to keep unix2dos or dos2unix from chaning the file properties? e.g.

create file testfile as user xfer
ls -la > testfile [return]
ls -la [return]
-rw-rw-rw- 1 xfer xfer 529 Aub 10 09:52 testfile
unix2dos testfile [return]
ls -la [return]
-rw------- 1 xfer xfer 529 Aub 10 09:52 testfile

I would like to do the commands above with a script. My work around right now is:

unix2dos testfile
chmod 666 testfile

It seems strange that I should have to do that.
 
0
Comment
Question by:dwanders
2 Comments
 
LVL 11

Accepted Solution

by:
avizit earned 500 total points
ID: 11764795
0
 

Author Comment

by:dwanders
ID: 11765519
I believe you just won the cigar - thanks.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question