Notice
Recent Posts
Recent Comments
목록gnu utils (2)
준호씨의 블로그
OSX - zcat - No such file or directory? 오류 해결방법
gz로 압축된 로그파일을 zcat으로 열어 보려고 하니 오류가 발생합니다. $ zcat merged.gz zcat: can't stat: merged.gz (merged.gz.Z): No such file or directory 여러 가지 해결 방안이 있습니다. $ gzcat merged.gz $ cat merged.gz | zcat $ zcat < merged.gz 혹시 뭔가 잘 안되면 brew install coreutils 해서 GNU Utils를 설치합니다. 리눅스에서는 그냥 잘 될 수도 있습니다.
IT이야기
2022. 6. 14. 22:21
osx에서 coreutils(gnu util) 사용하기. grep, find, tail 등등
osx에도 grep, find, tail 등등 gnu커맨드와 비슷한 커맨드들이 있습니다. 그런데 gnu유틸의 커맨드들과는 조금씩 동작이 다른 경우가 있는데요. 예를 들어 아래와 같이 -n 옵션을 뒤에 적어 주면 해당 옵션은 무시되고 오류가 발생하는데요. $ tail -f some.log -n 3 tail: -n: No such file or directory tail: 3: No such file or directory ==> some.log Caveats Commands also provided by macOS and the commands dir, dircolors, vdir have been installed with the prefix "g". If you need to use these comm..
개발이야기
2018. 2. 25. 20:34