Useful Bash One Liners

Add .txt to files without extensions

find . -type f -maxdepth 1 ! -name "*.*" | xargs -I{} mv {} {}.txt

by Z. Bornheimer

Topic revision: r1 - 2016-06-18 - ZachBornheimer
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback