Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Ask some small questions about more

Shulou Source: shulou.com Published: 2022-06-03 06:46:37 10月03日 Update

Just now I had a whim to try the use of more to check the contents of the file! ~ but when the script is written and run, the script gets stuck and cannot view the contents of the file. Then log in to the target machine and view the contents of the file with more! ~ ~ so very confused! ~! After talking about the script to replace more with cat,less can view the contents of the file, the script runs normally. So come to ask for help from all netizens! ~ 1

The content of the script is attached below

1 #! / bin/bash

2 for i in `cat ~ / xuyuliang/00 `

3 do

4 echo $ip

5 # ssh $I "echo $iPortcat / etc/redhat-release" > > ~ / xuyuliang/002

6 ssh $I "echo $ibot more / etc/redhat-release"

7 done

(note: line 5 to log out)

Please reply to me if you understand. Thank you.

Tags: Content scripts files runs confusion whims time machines goals netizens help login emergencies questions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MySQL Microsoft Shulou Tech Info NVidia