linux:cli:sed

sed (Stream EDitor)

문자열 치환

sed -n -e 'command' [input file]
  • sed [OPTION]… {script-only-if-no-other-script} [input-file]…
  • sed -n: suppress automatic printing of pattern space
    sed –quiet
    sed –silent
  • sed –debug: annotate program execution
  • sed -e script: add the script to commands to be executed
    sed –expreession=script
  • sed -f script-file: add the contents of script-file to the commands to be executed
    sed –file=script-file
  • sed –follow-symlinks: follow symlinks when processing in place
  • linux/cli/sed.txt
  • 마지막으로 수정됨: 2025/10/10 14:35
  • (바깥 편집)