📜  在 windows 上的 vim 中查看 ipconfig - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:27.636000             🧑  作者: Mango

代码示例1
# Given user is in Windows, using git bash
# Two commands put results of ipconfig in txt file for viewing

# In git bash use "-" instead of "/" for win terminal parameters
# Windows has clip.exe to copy output of terminal to clipboard
ipconfig -all | clip

# Open a file to view your ipconfig output
vim ipconfig.txt

# Press "p" to put the clipboard contents into the txt file