본문 바로가기
조회 수 1431 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
If you ever open up a file in a Finder application and see lots of little boxes at the end of each line, or if you try to edit a file within Unix and find that it’s littered with ^M sequences, you’ve hit the end-of-line problem.

To fix it, create the following command aliases:
    alias m2u="tr '\015' '\012' "
    alias u2m="tr '\012' '\015' "

use m2u (Mac to Unix),
$ m2u < mac-format-file > unix-friendly-file

use the reverse (Unix to Mac)
$ u2m < unix-friendly-file > mac-format-file


Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
57 Tomcat start/stop scripts Hojung 2015.07.31 1863
56 Generate PDF with text file on OS X file Hojung 2015.07.30 1389
55 Install JDK7, Tomcat7 and MySQL on OS X file Hojung 2015.07.28 1367
54 Keyboard Symbol List Hojung 2015.07.02 1209
53 How to create a bootable USB stick from iso on OS X file Hojung 2014.12.14 1523
52 Mount volume read-only with Disk-Arbitrator file Hojung 2014.11.05 1817
51 How to check and fix drive in OS X from CLI (diskutil, fsck_hfs) file Hojung 2014.11.05 2222
50 FileVault 2 not working correctly in OS X VMs with VM disks set to Bus Type: SATA file Hojung 2014.11.05 1584
49 Create an encrypted archive file Hojung 2014.11.04 1415
48 Encrypt external hdd file Hojung 2014.11.04 1463
47 Finder 특정 디렉토리에서 디렉토리도 사이즈 보기 ('du -sh *' 와 동일) file Hojung 2014.11.04 1715
46 Don't delete files when copying file Hojung 2014.11.04 1472
45 안전하게 파일 삭제하기 (파일 완전삭제) file Hojung 2014.11.04 3113
» editor에서 ^M가 나오는 문제 (unix - mac 호환성 문제시) Hojung 2014.11.04 1431
43 How to get file info (file, GetFileInfo, mdls, mdfind) Hojung 2014.11.04 1594
42 Create bootable USB stick from ISO in Mac OS X file Hojung 2014.09.07 2651
41 Create an OS X 10.9 Mavericks ISO file Hojung 2014.09.01 2496
40 Install command line RAR and UnRAR for Mac OS Hojung 2014.05.26 2528
39 How to encrypt a file from the OS X command line Hojung 2014.03.03 3257
38 Going from MacPorts to Homebrew (how to remove macports) Hojung 2014.02.19 4241
Board Pagination ‹ Prev 1 2 3 Next ›
/ 3

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5