hi, a hard-working but horribly lost cs major here.
i'm working on a script that does global renaming using find, awk, and sed, which has wildcard inputs. i'm wondering if there's any way to strip the asterisk from the input and save it to some variable, say $str1 or just $s1.
i've been working on this problem for an hour or so, and i'm able to echo it as below:
echo $1 | sed 's/*//'
such that something like foo* would be foo and *foo would be foo.
i have been working hard on this and would appreciate any feedback at all.