Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

unix2dos dos2unix changing file access

Posted on 2004-08-10
2
Medium Priority
?
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
avizit earned 2000 total points
ID: 11764795
0
 

Author Comment

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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

610 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