Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #Please tell me there is a better way to do this
  2. #(And by 'a better way', I don't mean incorporating the cut within the awk script)
  3.  
  4. npm ls | grep -E "^(├|└)─" | cut -d" " -f2 | awk '{FS = "@"; print "\""$1"\"", ":", "\""$2"\""}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement