Skip to content

Commit cccd731

Browse files
committed
🔨 Add CRLF to LF conversion tip
1 parent e19d190 commit cccd731

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/devops/linux-tips/general-tips.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# General Linux Tips
22

3+
## Convert files from CRLF TO LF (Windows)
4+
5+
From a bash/WSL terminal within the folder you want to recursively modify the files:
6+
7+
```bash
8+
sudo apt-get update
9+
sudo apt-get install dos2unix
10+
find . -type f -exec dos2unix {} \;
11+
```
12+
313
## Output Redirection Using sudo tee
414

515
A great use case for this, is combining Apache Config files

0 commit comments

Comments
 (0)