need help regarding my very simple bash script
I'm still very newbie in bash programming...
I made this script to delete something like 'typescript' that cluttering in my home dir and its sub-dirs. here's the script Code:
#!/bin/bash Currently it can only accept argument with literal pattern. eg: Code:
$./myrmscript typescript so i can use this to delete files like foo1,foo2,fooyou. just by typing Code:
$./myrmscript foo* |
you can use $@. This will expand out your arguments passed in from shell
Code:
for args in $@ |
Try
Code:
$./myrmscript foo\* Groetjes, Kees-Jan |
Quote:
even i don't have to edit my script. tnx. |
All times are GMT -5. The time now is 06:43 AM. |