How do you search for files containing dos line endings (CRLF) with grep on Linux?
来源:互联网 发布:百度手机全家桶 知乎 编辑:程序博客网 时间:2024/05/22 04:35
Question:
How do you search for files containing dos line endings (CRLF) with grep on Linux?Answer:
Use ctrl-V ctrl-M to enter a literal ctrl-M into your grep string. so:grep -IUr --color "^M"
will work - if the ^M there is a literal ctrl-M that you input as I suggested.
If you want the list of files, you want to add the -l option as well.
0 0
- How do you search for files containing dos line endings (CRLF) with grep on Linux?
- Linux Log Files Location And How Do I View Logs Files on Linux?
- How do I pass a list of files to grep
- iOS: How do you measure actual on-CPU time for an iOS thread?
- Work with Passion: How to Do What You Love for a Living
- how do you do
- How do you make Ubuntu accept files sent over bluetooth
- You can list a directory containing 8 million files! But not with ls..
- Good English learning on-line site for share with you[转自bbs.chinadaily.com.cn]
- sublime with CRLF line terminators
- do you have a good frined on line?
- Checkout conflict with files. How do I proceed?
- How do you refresh Private View designs on clients?
- How do you install Node.JS on CentOS?
- How to recover deleted files on Linux
- How do you add?
- How to do synchronization for Tomboy Notes on Windows
- [转贴]How do I find a stored procedure containing ?
- unity3d鼠标2D控制方法
- New* Government Grants & Free U.s Money.
- linux平台下的软件安装于升级
- visual studio: fatal error LNK1123
- python 读写文件
- How do you search for files containing dos line endings (CRLF) with grep on Linux?
- IOS实现拨打电话直接拨出分机号
- linux men usage
- core dump 简单使用
- FRM-30187: Size of CHAR column in record group must be between 1 and 2000
- 对WM_NCHITTEST消息的了解+代码实例进行演示(1)
- SSO单点登录解决方案
- 要成为JAVA高级工程师 互联网产品经理 必看
- sed向文件末尾添加内容