bash

【bash】How to solve : Syntax error: "(" unexpected

I wrote some shell scripts and try to execute in docker httpd environment by typing below command sh sample.shthen I got this error. sample.sh: 13: Syntax error: "(" unexpectedYes I have "(" in line 13 but what's wrong with that? The thing…

【Linux/bash】catコマンドでファイルを作成する

catってファイルの中身を見る時に使ってたけど、 コマンドライン上でファイルの中身も書きながら ファイルの作成もできるってことで、コマンド例をメモ。このコマンドで「test.txt」という新たなファイルを作成し、 ファイルの内容を次の行から書くことがで…