You are organizing your personal workspace and need to identify all backup files that exist in the current working directory (CWD). By convention, you name backup files with the word "backup" in the filename. Write a command to list only these files, ensuring that the search is restricted to the current directory and does not include backup files located in subdirectories.
Searching files
Find backup files
Report a typo
Sample Input 1:
butter.mp3 6000
file.txt 1000
backup_21.bkp 25000
app_backup.bkp 20000
./backup/anotherbackup_21.bkp 25000
./data/nested/file1.txt 5000Sample Output 1:
./app_backup.bkp
./backup_21.bkpWrite a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.