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