Questions tagged [dos2unix]

About dos2unix conversion program

unix2dos is a Unix tool to convert an ASCII text file from DOS format (carriage return and line break) to UNIX format (line break).

Also see

94 questions
-1
votes
1 answer

romove last 5 character of string in Unix

I need to trim last 8 character of a file name Example: Input -Vignesh.dat12345678 expected o/p : Vignesh.dat I tried using rev but it didn't worked.
-2
votes
1 answer

Java: How to perform dos2unix on multiple xml files in a zip file?

I have a form to upload a zip file and then convert all the xml files inside the zip to unix format if they are in dos format. Right now I receive the input as an InputStream. How do I process the file in inputstream and perform (dos2unix) on it to…
Dookoto_Sea
  • 521
  • 1
  • 5
  • 16
-2
votes
3 answers

Convert unix date to integer value

hi i have my UNIX file date in particular format 2017-02-01 i want to convert it in integer value like 20170201. What can i do get this output.My UNIX box is(SunOS 5.10).I tried to check below command to see what they output.But i am not getting…
Randomguy
  • 192
  • 1
  • 11
-3
votes
1 answer

Not able to use dos2unix on UNIX machine

I try to use dos2unix command on unix machine but it gives me error like -- data_load]$ dos2unix a.csv a.csv -bash: dos2unix: command not found Then i use --- data_load]$ yum search dos2unix Loaded plugins: fastestmirror, refresh-packagekit,…
mradul
  • 509
  • 4
  • 12
  • 28
1 2 3 4 5 6
7