本文共 795 字,大约阅读时间需要 2 分钟。
1 2 3 4 5 6 7 8 | huwei@huwei:~$ export declare -x CLUTTER_IM_MODULE= "xim" declare -x COLORTERM= "gnome-terminal" declare -x COMPIZ_BIN_PATH= "/usr/bin/" declare -x COMPIZ_CONFIG_PROFILE= "ubuntu" declare -x DBUS_SESSION_BUS_ADDRESS= "unix:abstract=/tmp/dbus-pJMoy1flDl" declare -x DEFAULTS_PATH= "/usr/share/gconf/ubuntu.default.path" declare -x DESKTOP_SESSION="ubuntu |
使用cut命令,去掉每行前的第几个数字,比如要去掉'declare -x',
1 2 3 4 5 6 7 8 | huwei@huwei:~$ export | cut -c 12- CLUTTER_IM_MODULE= "xim" COLORTERM= "gnome-terminal" COMPIZ_BIN_PATH= "/usr/bin/" COMPIZ_CONFIG_PROFILE= "ubuntu" DBUS_SESSION_BUS_ADDRESS= "unix:abstract=/tmp/dbus-pJMoy1flDl" DEFAULTS_PATH= "/usr/share/gconf/ubuntu.default.path" DESKTOP_SESSION= "ubuntu" |