Search Results

Search: Posts Made By: yxian
38,273
Posted By yxian
Thanks Mate! I have spent a number of hour trying...
Thanks Mate! I have spent a number of hour trying to find this out?
38,273
Posted By yxian
Print the first four characters of hostname
Hey,
I'm trying to print the first four characters of the hostname of a computer.

I can get it from using:
hostname -s | sed 's/...........$//'"

but this is when I know how many characters...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy