Artificial intelligent assistant

sed include files with no suffix My sed command seems to exclude files with no suffix sed -i.bak 's>/media/colic/>/media/>g' *.* includes "filename.sh" but not "filename" sed -i.bak 's>/media/colic/>/media/>g' * Pulls up sed help, suggesting I need help (hence this question) sed -i.bak 's>/media/colic/>/media/>g' '*' tells me there are no files to be found I could keep guessing, but I feel its better to ask what it is I dont understand.

The string like `*.*` after your command is a globbing pattern, not a regular expression. It looks similar but it's not. For example `.` in a regexp means "any character" while `.` in a globbing pattern means "literal ." and `?` in a regexp is the equivalent that means "any character".

So in your command lines:

1. `*.*` = any file name that contains "." surrounded by any characters,
2. `*` = all files in your current directory, and
3. `'*'` = the file that's literally named `*`.



When I say "file" above that includes directories. Google "globbing patterns" for more information on their syntax.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy c885a29fd2baaec4fe5c28c4e9259dc3