rajeshkumar created the topic: Configuring line-ending settings in perforce
Unix uses one byte, 0x0A (LineFeed), while windows uses two bytes, 0x0D 0x0A (Carriage Return, Line feed).
To Find the files which has Windows line endings
egrep -l $’\r\n’ * in Bash
To Convert files from DOS TO unix
dos2unix -U
file
if the file has regular LF line endings, then it won’t print any output. But if the file has CRLF, bare CR, or mixed line endings, it will tell you that
Configuring line-ending settings in perforce
kb.perforce.com/article/63
kb.perforce.com/article/63
kb.perforce.com/article/71/perforce-macintosh-platform-notes
www.perforce.com/perforce/r10.1/manuals/p4guide/02_config.html
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals