troubleshooting Question

ignore the last field using awk

Avatar of nlrreddy
nlrreddy asked on
Shell Scripting
5 Comments1 Solution801 ViewsLast Modified:
Hi,

How can I ignore the last field from the standard out and display the remaining

Suppose, my initial standard output is

SVN/developer/apps/dbtake/tags/rel-111/trunk/bveri.inc
SVN/developer/apps/dbtake/tags/rel-111/trunk/adanc/yellowt.html

the awk command should be able to display only until

SVN/developer/apps/dbtake/tags/rel-111/trunk/
SVN/developer/apps/dbtake/tags/rel-111/trunk/adanc/

How can I do this using awk.

Thanks,
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros