2019-11-27

anond:20191127120514

Get-ChildItem -Recurse | select-object fullname | out-file "sample.txt" -width 500

記事への反応 -
  • Windowsのコマンドが使えないからpowershellを利用しようとしているんだけど やりたい出力結果にならない。 \\test\テストサービス\テスト1\ \\test\テストサービス\テスト2\ \\test\テストサービ...

    • Get-ChildItem -Recurse | select-object fullname | out-file "sample.txt" -width 500

    • 知らんけどbashだと if [ ${path:0:-1} == "/" ] then #ディレクトリの場合 readlink -f ${path} else #それ以外 echo ${path} fi でできるぞ。bashを使うのだ。

記事への反応(ブックマークコメント)

ログイン ユーザー登録
ようこそ ゲスト さん