• Daum
  • |
  • 카페
  • |
  • 테이블
  • |
  • 메일
  • |
  • 카페앱 설치
 
카페정보
카페 프로필 이미지
간단유틸
카페 가입하기
 
 
 
카페 게시글
자유 게시판 파워쉘 문자 찾기 명령어 단어만 추출 하기 OneDrive Update disable 온드라이브 업데이트 사용안함
동우 추천 0 조회 77 22.11.20 00:16 댓글 6
게시글 본문내용
 
다음검색
첨부된 파일
댓글
  • 작성자 22.11.20 00:51

    첫댓글 문자는 파일이 uff-16으로 된다 ㅋㅋ;;
    https://stricky.tistory.com/160
    Get-Content <원본파일경로&이름> | Set-Content <변경후 저장 파일경로&이름> -Encoding UTF8

  • 작성자 22.11.20 01:22

    PowerShell -Command "& {Get-Content d:\out555.txt | Set-Content d:\77777.txt -Encoding UTF8}"
    겨우 성공

  • 작성자 22.11.20 01:19

    PowerShell -Command "& {Get-Content d:\out555.txt | %{Set-Content -Value -Encoding UTF8} > d:\77777.txt }" 어렵다 잘 안됨 ㅋㅋ 나오질 않는다. 실패.

  • 작성자 22.11.20 01:36

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_character_encoding?view=powershell-7.3
    이놈의 인코딩 사람 잡내 ㅋ

  • 작성자 22.11.20 01:40

    PowerShell -Command "& {Get-Content d:\out555.txt | Set-Content d:\77777.txt -Encoding utf7}"
    이걸 해내내 -_- 이렇게 하면 utf-8이 된다

  • 작성자 22.11.20 02:03

    https://cafe.daum.net/candan/I45j/75 추출 하기
    For /F "Delims=" %G In ('findstr /c:"OneDrive Standalone Update Task" d:\77777.txt 2^>NUL') Do echo %G

최신목록