Nov 11, 2020 in Linux
Q: Write a bash script to delete all the files in the current directory that contains the word “linux”.

1 Answer

0 votes
Nov 11, 2020
Write a bash script to delete all the files in the current directory that contains the word “linux”.

for i in *linux*; do rm $i; done

Related questions

+1 vote
Feb 17 in Linux
0 votes
Nov 11, 2020 in Linux
...