findの結果を「ls -l」で表示する方法

findで結果は相対パスでしか表示されません。ファイルの所有者情報をパーミッションを表示させるls -lのように表示するにはオプションで「-ls」と使用するか「xargs」を使用して引数を「l ...
cron実行時に環境変数を読み込む

cronに登録しているスクリプトでログに特定の文字を含むとメールするスクリプトがあります。メールする本文やタイトルに日本語文字が場合に文字化けが発生しました。
スクリプト単体だと ...
cat コマンドでファイルの結合

複数のファイルを連結して表示したり保存したりする場合は、catコマンドを利用すればできます。
下記のようなファイルがある場合で説明します
Windows10でチャットワークのログを無料に保存する

前回の記事(macOSでチャットワークのログを無料に保存する)でmacOSの場合でのチャットワークのログ保存の方法を紹介しました。今回はWindowsでの保存方法を紹介します。 ...
MacOSでチャットワークのログを無料に保存する

KDDIが提供しているCahtWork(チャットワーク)のログ保存するには有償サービスを利用ですが、無料でデータをローカルにダウンロードする方法があります。「goodbye_chatwork」 ...
MacOSのカレンダーとGoogleカレンダーを同期させる

普段はGoogleカレンダーをメインに使用しているのでmacOSのカレンダーでもGoogleカレンダーのスケージュールを確認したい時があるので、macOSにインストールされている ...
Ubuntuで標準のエディタをvimに変更する

Ubuntuをセットアップ後にCronの設定をしようすると「nano」が起動して、いつもは「vim」なのでショートカットキーが違うので保存とかするだけでも大変でした。このエディタを変更する方法を紹介します
「select- ...
サービス・プロセスの起動確認するシェルスクリプト

特定のプロセスやサービスの起動を確認して落ちていれば起動するシェルスクリプトです。
シェルスクリプトの流れは、psコマンドでプロセスを確認して、wcコマンド起 ...
Ubuntuでuseaddでホームディレクトリができない

最近、UbuntuのOSをインストールして使う機会があって数年ぶり触ってみましたが、Redhat系と違い戸惑うことが多かったので、初歩的ですが躓いた箇所をブログに上 ...
Windows 10のバージョン情報・ビルド番号を確認する

Windows10で、今使っているWindowsのバージョン情報やビルド番号を確認するには、「Windowsバージョン情報」の画面で確認できます。また、この「Windowsバ ...
BootcampのWindowsでの画面キャプチャ(スクリーンショット)撮り方

Windows機のキーボードでは、画面キャプチャ(スクリーンショット)を取る場合は、「Print screenキー」を押せば画面のキャプチャが撮 ...
MacOSで再起動・終了後に以前開いていたアプリを開かない設定

macOSでいつも再起動や終了後に、最後に起動していたアプリがいつも起動したままになっていて、MacBookを蓋を閉じてスリープから復帰したような感じでした。
Windowsだと終了時はアプリ(ソフト)は全て終了するのに変だな ...
連続した空白のフィールドを awk ,cut で切り出す

ログなどで設定ファイルで空白で区切られている場合、cutコマンドで「cut -d ” ” -f3」とかで取り出せますが、連続した空白の ...
grepで拡張子を指定して検索・拡張子を除外して検索

grepコマンドで特定の拡張子を指定して検索する方法・特定の拡張子を除外して検索する方法を紹介します
grepコマンドで特定の拡張子のファイルのみ検索する方法grepコマンドでHTMLファイル等の特定のファイルを対象に検索 ...
WinSCPで特定の拡張子のみダウンロードする方法

WEBコンテンツ内でHTMLのみ・PHPのみを一括置換したい場合、特定の拡張子のファイルをダウンロードしたりアップロードしたい場合があります
使用しているFTP・SC ...