OK, so I know that $:
is used to specify specific line arguments It is easy to print. I $ cat file hello world $ awk '{print $ 1}' file hello But if I want to print between 2 to 8 characters? Or 3 to 7? Is it possible to awk?
awk '{print substr ($ 0,2,6)}' file
Comments
Post a Comment