![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| awk program to select a portion of a line | anju | Shell Programming and Scripting | 3 | 01-11-2008 06:33 AM |
| Backspace erasing the prompt | videsh77 | UNIX for Dummies Questions & Answers | 4 | 01-23-2007 07:38 AM |
| Delete Portion of a file | sameersbn | High Level Programming | 2 | 01-20-2007 12:16 AM |
| erasing portion of line with sed (only once) | gammaman | UNIX for Dummies Questions & Answers | 1 | 07-14-2005 08:40 PM |
| erasing old files | lsquillacioti | UNIX for Dummies Questions & Answers | 1 | 04-10-2001 02:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
erasing portion of line with sed
hi,
I'm trying to use sed to erase everything, and including the ending parenthesis. For example: input: blah blah blah (12355)this is what i want. output: this is what i want. how would i do this? i found an example online that does the opposite: sed \"s|test.*||g\" file1 > file2"; but when i reverse it, it doesn't do anything. Any ideas? thanks, gammaman ![]() |
|
||||
|
erasing blank lines using sed
do you also know how I can erase only the blank lines of a huge file?
I was thinking something similar to this, but this might also erase the blank spaces on lines with words? sed "s|*[]*||g" huge_file; thanks, gammaman |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|