An escaping of the variable within bash script

前端 未结 3 978
慢半拍i
慢半拍i 2021-01-27 09:43

My bash script writes an another bash script using printf.

printf \"#!/bin/bash
HOME=${server}
file=gromacs*
file_name=\\$(basename \"\\${file}\")
date=\\$(date          


        
3条回答
提交回复
热议问题