エンジニアを目指す初学者に向けて、わかりやすく解説したブログです。
シェルスクリプト 2/3

【Linux】ファイルの中身をクリアする(ログファイルなど)

Featured image of the post

何か内容が書かれているファイルの中身をコマンド一発で空にする

【Linux】シェルスクリプトの実行場所を気にしなくて良いように、相対パスでも絶対パスでも同じ動作をさせる

Featured image of the post

【Linux】sitemapなどのxmlを見やすく整形するコマンド

Featured image of the post

圧縮して自動生成されたsitemap.xmlを、コマンドを使って見やすく表示する方法。

2分でサクッと自動化シェルスクリプト

Featured image of the post

【Linux】seqコマンド - 数値のリストを出力

Featured image of the post

【fish】ディレクトリの色が見にくい

Featured image of the post

【Linux】シェルでログの集計を行うコマンド

Featured image of the post

「cat access.log | sort | uniq -c | sort -nr」でOK

【Linux】csvのようなカンマ区切りのファイルを特定の要素でソートする

Featured image of the post

【Linux】ファイルを一行ずつ読み込んで処理をする(curlとか)

Featured image of the post

【Linux】パスを通すとは

Featured image of the post