sed:zip:zip_up_each_file_individually_deleting_the_source_file_and_setting_the_name_of_each_.zip_file_to_the_basename_of_the_file
SED - ZIP - ZIP up each file individually, deleting the source file and setting the name of each .ZIP file to the basename of the file
zip up each .TXT file individually, deleting the source file and setting the name of each .ZIP file to the basename of the .TXT file
NOTE: Under DOS: the “dir /b” switch returns bare filenames in all caps).
echo @echo off >zipup.bat dir /b *.txt | sed "s/^\(.*\)\.TXT/pkzip -mo \1 \1.TXT/" >> zipup.bat
sed/zip/zip_up_each_file_individually_deleting_the_source_file_and_setting_the_name_of_each_.zip_file_to_the_basename_of_the_file.txt · Last modified: 2020/08/17 11:41 by 192.168.1.1