![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove last blank line of file | ruchimca | Shell Programming and Scripting | 2 | 04-08-2009 10:30 PM |
| Remove blank spaces in a text file... | bhagya2340 | Shell Programming and Scripting | 4 | 03-01-2009 02:47 AM |
| how to remove blank spaces of a file with awk?? | pabloli150 | Shell Programming and Scripting | 4 | 02-26-2009 04:08 PM |
| Shell script: Remove blank lines | gholdbhurg | Shell Programming and Scripting | 3 | 02-25-2009 02:33 PM |
| remove blank lines in *.srt file :) | hungbp | UNIX for Dummies Questions & Answers | 10 | 02-16-2008 08:40 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Script to remove a blank in a file on Redhat
Hi,
I'm running 2.6.9-55.ELsmp. I'm looking for a script to remove a blank line on the first line of a file. The script must also test if the file is 0k, if yes then do nothing, but if the file is > 0k then check if the first line is not blank, if yes then remove the line then save it. Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|