-2

for example I have a string Hello.World.Get.book I need only Hello to be printed

A. Valli
  • 1
  • 2
  • 2
    How about google it first ? – P.... Aug 11 '16 at 07:24
  • Possible duplicate of [AWK command line printing column separated by comma](http://stackoverflow.com/questions/26842504/awk-command-line-printing-column-separated-by-comma) – P.... Aug 11 '16 at 07:49

1 Answers1

0

cut -d '.' -f1

will cut fields using '.' as a delimiter