linux指令1(리눅스명령1)

<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:"KP CheongPong"; panose-1:0 0 4 0 0 0 0 0 0 0; mso-font-charset:129; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-1879047505 434105595 18 0 1572865 0;} @font-face {font-family:"/@KP CheongPong"; panose-1:0 0 4 0 0 0 0 0 0 0; mso-font-charset:129; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-1879047505 434105595 18 0 1572865 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; text-autospace:none; word-break:break-hangul; font-size:12.0pt; font-family:"KP CheongPong"; mso-bidi-font-family:"Times New Roman";} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-bidi-font-size:10.0pt; mso-ascii-font-family:"Times New Roman"; mso-fareast-font-family:바탕; mso-hansi-font-family:"Times New Roman"; mso-font-kerning:0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:595.3pt 841.9pt; margin:99.25pt 3.0cm 3.0cm 3.0cm; mso-header-margin:42.55pt; mso-footer-margin:49.6pt; mso-paper-source:0; layout-grid:18.0pt;} div.Section1 {page:Section1;} -->

문자열찾기 방법 1 - 영어만 주로 가능
# grep -rw "
찾는문자열" ./

문자열찾기 방법 2 - / 소문자 구분 안하고 검색
# grep -i -l "
찾는문자열" * -r 2> /dev/null

문자열찾기 방법 3 - 한글, 영어 모두 가능
# find . -exec grep -l "
찾는문자열" {} /; 2>/dev/null

문자열찾기 방법 4 - 한글, 영어, 대소문자 안가리고 검색
# find . -exec grep -i -l "
찾을문자열" {} /; 2>/dev/null

문자열찾은 후 치환
# find . -exec perl -pi -e 's/
찾을문자열/ 바꿀문자열/g' {} /; 2>/dev/null

파일명 찾기
# find / -name
파일명 -type f

파일명 찾기( 대소문자 구별없음)
# find / -iname
파일명 -type f

디렉토리 찾기
# find / -name
파일명 -type d

디렉토리 찾기( 대소문자 구별없음)
# find / -iname
파일명 -type d

 

하위디렉토리 내.. 모든파일 찾기..
find . | xargs grep
메롱

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值