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
0
votes
3 answers

How to run dos2unix on all files with all extensions in a directory and its sun-directories?

Say I am in a folder named Folder. This folder have several files with different file types, and several subfolders called, SubFolder1, SubFolder2, etc. Each of these subfolders have files and subfolders inside them. I want to run dos2unix on ALL…
tajir12457
  • 153
  • 1
  • 11
0
votes
0 answers

Mac cannot read DOS files, must use dos2unix

A while ago I was messing around with my Mac settings in Terminal. Since then, I've had to use dos2unix (http://dos2unix.sourceforge.net/) on many files just to be able to run them. This includes files that my team create and push to a shared…
Daven
  • 549
  • 4
  • 11
0
votes
2 answers

Shell script for using dos2unix on directories and sub directories for KornShell

dos2unix takes filename as an argument. I need to make it generic so that it can take either a file or directories and then search recursively in directories and convert all files in the tree structure from dos to Unix. I am using KornShell…
ruby
  • 1
  • 1
  • 1
0
votes
1 answer

how can i activate dos2unix on files that loacated in google cloud using gsutil?

I have files in my GCP bucket and I am trying to activate dos2unix on those files. I couldn't find (after 1 hour of searching) any commands that allow me that. I try that: gsutil dos2unix gs://my-google-bucket/short_1000rows.csv but it didn't…
Pythonist
  • 75
  • 1
  • 7
0
votes
0 answers

How can i send the output of an sql statement

I'm trying to make a script that sends mail to someone (with Unix) to receive the output of a statement. What I selected in that statement to send to the mail. I already have a connection made through Teradata, I kept trying to make this reference…
ferye21
  • 13
  • 1
  • 7
0
votes
0 answers

makefile - no rule to make a target c

This case has been opened many times, I have checked up all of the answers but didn't really help. I'm posting it here may someone can help me. My working architecture is : | ( I'm Here ) +- matamzone.c +- amountset.c +- product.c +- order.c +-…
0
votes
2 answers

How to remove ^M special character in VI mode - Can't remove using dos2unix, can't print the whole line doing cat or grep

Linux: RHEL5 Tikanga Version: 2.6.18-402.el5 (per uname -a) I'm creating a file by grepping some line from a windows source file (which contains some Version=x.x.x value) and putting it to new file aa.txt. This works fine for finding and grepping…
AKS
  • 16,482
  • 43
  • 166
  • 258
0
votes
1 answer

Ansible lineinfile adding ^M to end of lines?

I am using ansible's lineinfile to update a file. Once I've updated the file - which works - the file has ^M chars at the end of every line. This behaviour is undesirable - how do I turn it off? It seems counter intuitive that I would then need to…
datakid
  • 2,293
  • 5
  • 23
  • 35
0
votes
0 answers

HADOOP on WINDOWS error finding hostname $'hostname\r' with start-dfs.sh Name or service not known hostname

I am installing Hadoop on window 7 64bits with Cygwin. After I format the Hadoop successfully, I want start it use the command: start-dfs.sh. but it reports as: ]tarting namenodes on [DATASCIENCES01 : Name or service not knownstname…
Cielronix
  • 1
  • 1
0
votes
3 answers

How to run the dos2unix command on files inside multiple folders and sub-folders?

I want to run the dos2unix command on all files inside a folder. The issue here is the folder contains files and sub-folders. The sub-folder again contains files and folders. So if I simply run user/bin/dos2unix , it will throw an error…
Ban Midou
  • 63
  • 2
  • 10
0
votes
2 answers

shell script to convert windows file to unix using dos2unix

I'm writing a simple shell script to make use of dos2unix command to convert Windows-format files to Unix format as and when it arrives in my folder. I used to use iconv in the script and automate it to get one encoding converted to the other. But…
mac_online
  • 350
  • 1
  • 5
  • 18
0
votes
0 answers

How can I give permission to my python script programmatically

Whenever I write a new Python script in Windows, to execute it on UNIX I need to first give permission through chmod and then I have run dos2unix to make it executable. I don't want to run these commands. Is there any way to to add permission and…
gaurav bharadwaj
  • 1,669
  • 1
  • 12
  • 29
0
votes
0 answers

AES Decryption not working in unix server when encrypted file uploaded from Windows (Bouncy Castle)

One of our clients will upload a ENCRYPTED file in our application and we will move that file to our AIX server and decrypt it. The file is not getting decrypted properly. If I manually move the encrypted file through SFTP to the AIX server,…
saratbala
  • 29
  • 3
0
votes
1 answer

How to set umask and dos2unix when checking out on Linux?

How can I configure my svn client (/bin/svn) to check out files under a default permission setting (e.g. umask 0022 or chmod 755) as well as to instantly convert them from DOS file format? Currently, I do dos2unix.
amphibient
  • 29,770
  • 54
  • 146
  • 240
0
votes
2 answers

Concatenate three integer value UNIX

hi i am trying to concatenate three integer value in UNIX OS(SunOS 5.10). But it is not working for me . Below is the code a=2016 b=11 c=21 result="$a$b$c" echo "$result" OUTPUT-: 2016 11 21 Can anyone help???
Randomguy
  • 192
  • 1
  • 11