#!/bin/bash #.Y / 70 83 / / / / 105 / / / / / / ;A4_QUER.Y #.YT 3 2 0 0 3 3 1 / / / #.H!a!0:linux//io/THIS!0.!c # # copyright : (C) 2009 by Thomas Bruecker =: tbrue # email : public0x05bf@bluewin.ch # # tbrue 03dec2007 # # io THIS : io-functions # ++++++++++++++++++++++ # # MyHash("linux//io/THIS") = 0x084F # # * for every function: # * if returned result is not commented, the function returns 0 on no-error. SCRIPTS=root/bin io_dotIssueNet() # 'print /etc/issue.net' to stdout . { local Kernel0x084F Machine0x084F Kernel0x084F=$(/bin/uname -r) Machine0x084F=$(/bin/uname -m) # ... sed: replace "\r" and "\m" with "%s" (for printf...) . printf "$( cat /etc/issue.net \ | sed -e 's/\\r/%s/' | sed -e 's/\\m/%s/' )\n" \ "${Kernel0x084F}" "${Machine0x084F}" return # printf returns 0 . }