This pull request enhances the cat command in s5cmd to support wildcard and prefix operations, improving its flexibility and usability for users. It includes comprehensive test cases.
Wildcard Support:
Example:s5cmd cat s3://bucket/foo* concatenates content of files with paths starting with s3://bucket/foo. Use quotation marks according to your terminal type (e.g., bash, zsh).
Prefix Support:
Enables cat to concatenate all files within a specified directory. Ignores nested folders.
Example:s5cmd cat s3://bucket/dir/ concatenates content of all files within the "dir" directory. But would not match with files inside s3://bucket/dir/another_folder/. Wildcard characters can be used for this case.
This pull request enhances the cat command in s5cmd to support wildcard and prefix operations, improving its flexibility and usability for users. It includes comprehensive test cases.
Wildcard Support: Example:
s5cmd cat s3://bucket/foo*
concatenates content of files with paths starting withs3://bucket/foo
. Use quotation marks according to your terminal type (e.g., bash, zsh).Prefix Support: Enables cat to concatenate all files within a specified directory. Ignores nested folders. Example:
s5cmd cat s3://bucket/dir/
concatenates content of all files within the "dir" directory. But would not match with files insides3://bucket/dir/another_folder/
. Wildcard characters can be used for this case.Resolves: #716