Link to home
Start Free TrialLog in
Avatar of brianjava
brianjava

asked on

cut command

[walkerb@m-net ~]$  date +"%m-%d-%y-%H-%M"

the above works and all....but I am experimenting using the cut command...to display only the the hour and minute....how to I adjust the top code?
Avatar of Tintin
Tintin

date +"%m-%d-%y-%H-%M"|cut -d- -f4-5

Where -d sets the field delimiter and the -f specifies which fields to cut.
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brianjava

ASKER

yes....I know....just trying to figure out the cut command more...thanks