문서의 이전 판입니다!


bash script

변수 특정 글자 제거

${변수%제거할문자}

#!/bin/bash

# Call this as:
#   ./test.sh one/ two/ three/ 
#
# Output:
#  one two three

echo ${@%/}
로그인하면 댓글을 남길 수 있습니다.
  • bash_script.1652020405.txt.gz
  • 마지막으로 수정됨: 2022/05/08 14:33
  • 저자 koov