I have a following structure:
-folder1
-folder2
-file1
-file2
-folder3
-folder4
-folder5
-file3
-file4
Using bash I need to create a .tar archive in the actual directory, which will contain 4 files(file1,file2,file3,file4). Everything that I've tried makes an archive of files with their paths. What I need is an archive of just files, which must contain:
file1
file2
file3
file4