The -s flag removes a trailing suffix, so this prints just file instead of file.txt. Scripts use it to derive output names from inputs, like turning report.txt into report.pdf. The suffix is matched literally at the end of the name.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.