when I run this, I get this "bad replacement" error. What can I do?
$ x="Hello World" $ echo "$x" Hello World $ echo "${x^^}" -bash: ${x^^}: bad substitution
EDIT: I would like to have it in all the upper cases.
Your method only works in bash 4. Try the following:
echo $x | tr '[az]' '[AZ]'
Source: https://habr.com/ru/post/1479440/More articles:When should I use various storage engines in iOS? - designRemoving Trailing Slash from a directory in htaccess - .htaccessWix burn does not display multiple entries in ARP - wixAdjusting input volume using AVFoundation (in AVCaptureSession) - objective-cHow to connect to UDP broadcast using GStreamer in C - csecure django file permissions - pythonNSTableView Popup Button - CocoaUnion of data frames in R by growth names - rIs there a kdiff3 equivalent on the command line that allows selective merging? - command-lineHow can I create more than one page from one page upstream using Moovweb? - mobileAll Articles