Find the answer to your Linux question:
Results 1 to 2 of 2
Hello Im doing a scripting project for school and has run into a problem. I want to search for the occurrence of "[" in a field. And then i want ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5

    Help with awk

    Hello
    Im doing a scripting project for school and has run into a problem.
    I want to search for the occurrence of "[" in a field. And then i want to delete that and everything after that (in that field)
    Any tips of howto do it?

  2. #2
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    You can try
    sed -i 's/\[//g' filename

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...