[LINUX] Enclose the cat result in double quotes and put it in a variable

command

test=\"`cat test.json`\"
echo $test

Description

-The character string enclosed in the backslash "` "is executed as a command. ・ You can enter "" "with ".

Recommended Posts

Enclose the cat result in double quotes and put it in a variable
The result of making a map album of Italy honeymoon in Python and sharing it
[sh] How to store the command execution result in a variable
[Python] The role of the asterisk in front of the variable. Divide the input value and assign it to a variable
Find it in the procession and edit it
I set the environment variable with Docker and displayed it in Python
Define a division value in Django and easily reflect it on the screen
If you define a method in a Ruby class and define a method in it, it becomes a method of the original class.
[Selenium] Open the link in a new tab and move it [Python / Chrome Driver]
It is easy to execute SQL with Python and output the result in Excel
Read the csv file and display it in the browser
[Linux] How to put your IP in a variable
Recursively get the Excel list in a specific folder with python and write it to Excel.
If you want to put an argument in the closure function and execute it later
An easy way to view the time taken in Python and a smarter way to improve it
Put Ubuntu in Raspi, put Docker on it, and control GPIO with python from the container
Save the pystan model and results in a pickle file
Temporarily save a Python object and reuse it in another Python
Put the lists together in pandas to make a DataFrame
A memo that handles double-byte double quotes in Python regular expressions
Scraping the schedule of Hinatazaka46 and reflecting it in Google Calendar
Why put a slice on the left side in the substitution formula
Put logger in the open source pip package and analyze the operation
How to check the memory size of a variable in Python
Delete a particular character in Python if it is the last
I want to create a pipfile and reflect it in docker
Transcendental simple and clear! !! Difference between single quotes and double quotes in Python
Convert the result of python optparse to dict and utilize it
I made a POST script to create an issue on Github and register it in the Project
[Python] How to save the installed package and install it in a new environment at once Mac environment
How to input a character string in Python and output it as it is or in the opposite direction.