「あ、気づいたらauto-compact...」を防ぐ。Claude Codeのコンテキスト使用率をmacOS通知してみる
https://qiita.com/_kuma/items/39607de8bd7c950f3136?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
「あ、気づいたらauto-compact...」を防ぐ。Claude Codeのコンテキスト使用率をmacOS通知してみる
https://qiita.com/_kuma/items/39607de8bd7c950f3136?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#Linux #CommandLine #array question: The output of
~$ ps ax | grep librewolf | grep -v grep | awk '{print $1}'
Creates this list of pids:
6968
7027
7072
7077
7086
7126
7187
7201
7207
7213
I want to store them in an array. The problem I'm running in to is the command line below doesn't store them in the variable, lwf
lwf=$(ps ax | grep librewolf | grep -v grep | awk '{print $1}')
When I then attempt to list the array elements with
printf "${#lwf[@]}\n"
The output is only this digit: 1
Which is not the first pid in the list above. The goal is to define the array in a #ShellScript. Thoughts? Suggestions?
【Excalidraw】ローカル環境をワンクリックで爆速起動する自動化スクリプト
https://qiita.com/itsuki_y/items/fe5ce3c79405783d6d95?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
Claude Code と Codex のレート残量を確認するためにブラウザを開くのをやめた話
https://qiita.com/tatsuya582/items/5ca0c12a8495530f7d09?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
Custom FM Radio Station Powered by Shell Scripts