Find dos format files in unix
DavidKohen you're right, -exec would work too. But it's irrelevant for the question, so I removed that now. Show 1 more comment. Active Oldest Votes. Improve this answer. January January 1, 2 2 gold badges 16 16 silver badges 14 14 bronze badges.
Yeah it should normally work, but it does not work in Git Bash. Unfortunately none of your tips work: the printf doesn't work, grep doesn't have -P flag, and there is no file command in Git Bash Any other ideas?
Should do the same as printf. Same as printf , none of the files match that way. Um, so most likely a bug. Do you have a C compiler installed? I can write you a little C program that should work. No gcc or cc comes with Git Bash. I don't want to install cygwin. So, thanks, but nevermind. My workaround is to convert all files which I suspect to have CR line-endings. The files which don't have will not be changed so it should be ok, it's just an ugly solution.
Next you should read. DevOps and Development SysAdmin. Unstaging in Git means removing queued changes from the index.
This guide covers several different ways to Security SysAdmin. Setting file and directory permission properly is important in multi-user systems such as Linux. You can set Backup and Recovery SysAdmin. If you want to keep your filesystems clean and without errors, you need to scan it on regular basis. There are multiple ways to find out the control M character in a text file. While moving the Windows file to Unix, you need to remove this CR character. V should be first. SunOS Commands. FreeBSD Commands.
Full Man Repository. Advanced Search. Contact Us. Forum Rules. Mark Forums Read. Thread Tools. View Public Profile for Optimus Find all posts by Optimus View Public Profile for vbe. Find all posts by vbe. View Public Profile for Subbeh. Find all posts by Subbeh.
0コメント