Search Results

Search: Posts Made By: losingit
5,301
Posted By Chubler_XL
As -f takes an argument eg [-f file] you need a...
As -f takes an argument eg [-f file] you need a colon after it in the getopt argument:

while getopts mf:t: option

Then use $OPTARG to refer to the file (similar to what you did for -n):
f)...
3,082
Posted By Corona688
[edit] I just realized your columns weren't made...
[edit] I just realized your columns weren't made by WHO. I need to alter that echo too.

echo -e "User\tTTY\tDate\tTime"
who | cut -c1-7,9-15,23-25,28-34 | tr ' ' '\t'
Showing results 1 to 2 of 2

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