<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: dos2unix path in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176362#M32173</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; it is linux. but, dos2unix should work very similar right.&lt;BR /&gt;&lt;BR /&gt;Well, "similar" != "same".  That said, one workaround is to use Perl:&lt;BR /&gt;&lt;BR /&gt;# perl -pe 's%\r\n%\n%; s%\032%% if eof' file&lt;BR /&gt;&lt;BR /&gt;...to update inplace and preserve a copy of the old file as 'file.old':&lt;BR /&gt;&lt;BR /&gt;# perl -pi.old -e 's%\r\n%\n%; s%\032%% if eof' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 08 Apr 2008 21:21:50 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-04-08T21:21:50Z</dc:date>
    <item>
      <title>dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176354#M32165</link>
      <description>When I run dos2unix like this&lt;BR /&gt;&lt;BR /&gt;dos2unix file&lt;BR /&gt;&lt;BR /&gt;i have no problem, but if I use full path&lt;BR /&gt;&lt;BR /&gt;dos2unix /dir/dir/file&lt;BR /&gt;&lt;BR /&gt;it complains.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;does anyone know if there is a workaround?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thank you</description>
      <pubDate>Tue, 08 Apr 2008 20:30:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176354#M32165</guid>
      <dc:creator>Gemini_2</dc:creator>
      <dc:date>2008-04-08T20:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176355#M32166</link>
      <description>&amp;gt;&amp;gt;i have no problem, but if I use full path&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;dos2unix /dir/dir/file&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;it complains.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What does it complain about?  Permissions?  Can't find the file? What?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;does anyone know if there is a workaround?&lt;BR /&gt;&lt;BR /&gt;Not without knowing what it is complaining about.&lt;BR /&gt;&lt;BR /&gt;Please provide any messages it is generating.</description>
      <pubDate>Tue, 08 Apr 2008 20:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176355#M32166</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-04-08T20:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176356#M32167</link>
      <description>this is an example&lt;BR /&gt;&lt;BR /&gt;[yanga@prince src]$ dos2unix ui/test.txt&lt;BR /&gt;dos2unix: converting file ui/test.txt to UNIX format ...&lt;BR /&gt;[yanga@prince src]$ dos2unix /users/misc/yanga/T124/BCVOB/TSG/src/ui/test.text&lt;BR /&gt;dos2unix: converting file /users/misc/yanga/T124/BCVOB/TSG/src/ui/test.text to UNIX format ...&lt;BR /&gt;dos2unix: problems renaming '/users/misc/yanga/T124/BCVOB/TSG/src/ui/d2utmpe5Smg0  ' to '/users/misc/yanga/T124/BCVO&lt;BR /&gt;B/TSG/src/ui/test.text'&lt;BR /&gt;          output file remains in '/users/misc/yanga/T124/BCVOB/TSG/src/ui/d2utmpe5Smg0  '&lt;BR /&gt;dos2unix: problems converting file /users/misc/yanga/T124/BCVOB/TSG/src/ui/test.text</description>
      <pubDate>Tue, 08 Apr 2008 20:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176356#M32167</guid>
      <dc:creator>Gemini_2</dc:creator>
      <dc:date>2008-04-08T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176357#M32168</link>
      <description>What platform is this?  Is this HP-UX?  If so, is this a non-standard program.  The usual command in HP-UX is dos2ux.&lt;BR /&gt;&lt;BR /&gt;Anyway, the key appears to be:&lt;BR /&gt;&lt;BR /&gt;[yanga@prince src]$ dos2unix /users/misc/yanga/T124/BCVOB/TSG/src/ui/test.text&lt;BR /&gt;dos2unix: converting file /users/misc/yanga/T124/BCVOB/TSG/src/ui/test.text to UNIX format ...&lt;BR /&gt;dos2unix: problems renaming '/users/misc/yanga/T124/BCVOB/TSG/src/ui/d2utmpe5Smg0  ' to '/users/misc/yanga/T124/BCVOB/TSG/src/ui/test.text'&lt;BR /&gt;&lt;BR /&gt;If I am reading this correctly it is trying to overwrite the original file with the converted file.  Correct?  If so, you may not have the appropriate permission to do that.</description>
      <pubDate>Tue, 08 Apr 2008 20:55:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176357#M32168</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-04-08T20:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176358#M32169</link>
      <description>it is linux. but, dos2unix should work very similar right.&lt;BR /&gt;&lt;BR /&gt;I gave two examples there. If I convert it from the directory itself, it is fine. but, if I convert it from the parent directory, it has problem.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Apr 2008 20:58:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176358#M32169</guid>
      <dc:creator>Gemini_2</dc:creator>
      <dc:date>2008-04-08T20:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176359#M32170</link>
      <description>&lt;BR /&gt;It should work similar, but the one you use appears to be simply broken. It suffers a buffer overflow problem. Unbelievable, and inexcusable, but the signs are there.&lt;BR /&gt;&lt;BR /&gt;Complain to the provider of the program or switch over to HPUX.&lt;BR /&gt;&lt;BR /&gt;If you do investigate further, then be sure to provide EXACT version information.&lt;BR /&gt;&lt;BR /&gt;This is NOT a generic usage problem. &lt;BR /&gt;&lt;BR /&gt;What Linux? Platform? where does the dos2unix come from.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Apr 2008 21:12:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176359#M32170</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-04-08T21:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176360#M32171</link>
      <description>&amp;gt;&amp;gt; does anyone know if there is a workaround?&lt;BR /&gt;&lt;BR /&gt;You found it yourself...&lt;BR /&gt;&lt;BR /&gt;(cd $target_direcory; dos2unix $target_file)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem was in renaming temporary output file back over the original.&lt;BR /&gt;&lt;BR /&gt;If this was my problem would try with an artifically long directory in the path. See if that works.&lt;BR /&gt;&lt;BR /&gt;# mkdir abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz&lt;BR /&gt;# cp test/test.txt abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz&lt;BR /&gt;# dos2unix abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz/test.txt&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Apr 2008 21:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176360#M32171</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-04-08T21:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176361#M32172</link>
      <description>yes, that is what I ended up doing it.&lt;BR /&gt;&lt;BR /&gt;I was hoping that there is an easy workaround...well, it is easy enough..&lt;BR /&gt;&lt;BR /&gt;thanks everyone.</description>
      <pubDate>Tue, 08 Apr 2008 21:20:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176361#M32172</guid>
      <dc:creator>Gemini_2</dc:creator>
      <dc:date>2008-04-08T21:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176362#M32173</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; it is linux. but, dos2unix should work very similar right.&lt;BR /&gt;&lt;BR /&gt;Well, "similar" != "same".  That said, one workaround is to use Perl:&lt;BR /&gt;&lt;BR /&gt;# perl -pe 's%\r\n%\n%; s%\032%% if eof' file&lt;BR /&gt;&lt;BR /&gt;...to update inplace and preserve a copy of the old file as 'file.old':&lt;BR /&gt;&lt;BR /&gt;# perl -pi.old -e 's%\r\n%\n%; s%\032%% if eof' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 08 Apr 2008 21:21:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176362#M32173</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-04-08T21:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176363#M32174</link>
      <description>Since this is an HP-UX forum, most people will almost always assume that the question relates to HP-UX.&lt;BR /&gt;&lt;BR /&gt;IF it does not, then you should state UP FRONT that is an OS other than HP-UX.&lt;BR /&gt;&lt;BR /&gt;Also, there is a LINUX forum that this should really have been posted in.&lt;BR /&gt;&lt;BR /&gt;The dos2ux in HP-UX behaves differently that what you are seeing.  The may do equivalent functions, but the do not work the exact same way.  The kind of assumption you make could be dangerous with other commands.</description>
      <pubDate>Tue, 08 Apr 2008 21:40:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176363#M32174</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-04-08T21:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176364#M32175</link>
      <description>cool, thanks for letting me know!&lt;BR /&gt;&lt;BR /&gt;appreciate!</description>
      <pubDate>Tue, 08 Apr 2008 22:00:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-path/m-p/4176364#M32175</guid>
      <dc:creator>Gemini_2</dc:creator>
      <dc:date>2008-04-08T22:00:32Z</dc:date>
    </item>
  </channel>
</rss>

