개발 로그 구워내기

고정 헤더 영역

글 제목

메뉴 레이어

개발 로그 구워내기

메뉴 리스트

  • 홈
  • 태그
  • 방명록
  • 분류 전체보기 (19)
    • Linux (3)
      • ShellScript&Command (3)
    • Security (1)
      • SSL(TLS) (1)
    • DevOps (5)
      • Kubernetes (2)
      • NGINX (2)
      • Prometheus (1)
    • Windows (10)
      • PowerShell&Command (8)
      • WSL (1)
      • Bat&Cmd (1)

검색 레이어

개발 로그 구워내기

검색 영역

컨텐츠 검색

파워쉘 foreach

  • PowerShell(파워쉘) 파일 내 특정문자 내용 변경하기 (Replace)

    2023.06.28 by Hoonjo

PowerShell(파워쉘) 파일 내 특정문자 내용 변경하기 (Replace)

PowerShell(파워쉘) 파일 내 특정문자 내용 변경하기 (Replace) Replace Specific Characters in a PowerShell File (Replace) PowerShell(파워쉘) 파일 내 특정 문자열의 내용을 변경하는 방법에 대해서 알아보겠습니다. 1. 변경 대상 확인 abc.txt 파일 내 preText 문자를 변경해 보겠습니다. 2. 명령어 입력 명령어: Get-ChildItem -Path "C:\tistorytest" -Include "abc.txt" -Recurse | ForEach-Object{$tmp = Get-Content $_; $tmp=$tmp -Replace ("preText","afterText"); Set-Content -Encoding UTF8 $..

Windows/PowerShell&Command 2023. 6. 28. 19:30

추가 정보

인기글

최신글

페이징

이전
1
다음
bakingdevlog Github프로필 Velog(@johoon815)
개발 로그 구워내기 © HoonJo

티스토리툴바