![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| remove blank lines in *.srt file :) | hungbp | UNIX for Dummies Questions & Answers | 10 | 02-16-2008 08:40 AM |
| How to get last non-blank line? | tqlam | Shell Programming and Scripting | 6 | 01-17-2008 07:13 PM |
| To remove Continous blank spaces from a file in UNIX | arunkumar_mca | UNIX for Dummies Questions & Answers | 1 | 12-08-2006 01:10 AM |
| remove blank spaces in a string | spandu | Shell Programming and Scripting | 2 | 03-02-2006 02:08 AM |
| Remove blank lines | osymad | UNIX for Dummies Questions & Answers | 4 | 08-27-2005 06:41 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Remove blank line - SED
HI, I have this list of apps like so:
Code:
DivX Products.app DivX Support.app Uninstall DivX for Mac.app Build Applet.app SpringBoard.app Interface.app MobileAddressBook.app MobileSafari.app MobileSlideShow.app Preferences.app Install Flash Player 8 OSX.app Yap.app check_afp.app chess.app |
|
||||
|
We speculate that it's a DOS carriage return; if so, you might want to convert the whole file to Unix line ending conventions because otherwise, the problem will continue to haunt you whenever you need to match something at end of line, etc. See if dos2unix or your local equivalent would help (search these forums if you can't find a good command installed locally).
|
|
||||
|
So how do I convert the file to UNIX line endings? And if anyone is wondering where I got the weird space from, it was written to the app by an AppleScript script. I told it to write a "return" to the file, following some text. The return should have put a normal line break in there, which it did, but it certainly is an unmanipulatable break.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| line endings, macintosh, text conversion mac2unix |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|