I need to add apostrophes to a bunch of filenames. I think that maybe Sed is the best way to do this but it's years since I used it and I forgot almost everything.
So these file names vary in length and other things, though they are separated by newlines in a text file such as:
my cat is calico
my cat is fat and happy
there are 3 cats in my house
their names are - Pantalaimon Serenity
What are the symbology that I need to capture the lowercase, uppercase, numbers, and other symbology?
I know it's generally something such as this:
sed -i 's/my cat is calico/"my cat is calico"/g' filename.txt
but obviously I need to generalize it to capture all filenames in the file
So these file names vary in length and other things, though they are separated by newlines in a text file such as:
my cat is calico
my cat is fat and happy
there are 3 cats in my house
their names are - Pantalaimon Serenity
What are the symbology that I need to capture the lowercase, uppercase, numbers, and other symbology?
I know it's generally something such as this:
sed -i 's/my cat is calico/"my cat is calico"/g' filename.txt
but obviously I need to generalize it to capture all filenames in the file