Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Command Usage #10

Open
RongTsai4Git opened this issue Feb 11, 2022 · 3 comments
Open

Linux Command Usage #10

RongTsai4Git opened this issue Feb 11, 2022 · 3 comments
Labels

Comments

@RongTsai4Git
Copy link
Owner

No description provided.

@RongTsai4Git
Copy link
Owner Author

Convert between Unix and Windows text files

 tr -d '\15\32' < winfile.txt > unixfile.txt

@RongTsai4Git
Copy link
Owner Author

Using Vim to convert doc format

# convert to Unix
:set ff=unix 

# convert to Windows.
:set ff=dos 

@RongTsai4Git
Copy link
Owner Author

RongTsai4Git commented Mar 26, 2022

recursively find all files inside current directory and call for these files dos2unix command

find . -type f -print0 | xargs -0 dos2unix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant