im copying alot of files this is a script im trying to modify but not sure how to make it copy files without an extension and then add a .txt to them
abc= #assuming the file does not have an end or extension
foo='abc$'
FROM=/user/share/doc
TO=~/home/doc
for grep $foo in $from do
echo the files have no file extension
cp -r $FROM $TO
You must provide some criteria to treat the files without extensions.
e.g.
file should not contain the period ( "." ).
or
possible extension list like if the file doesn't contain the "txt" or "dat" extension treat the file as without extension.