The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
Install Windows 2003 R2 on existing Windows 2008 gunnervarma Windows & DOS: Issues & Discussions 2 04-07-2009 04:00 PM
What's better for running Windows software in Linux, Wine or Windows VMware? Advice Pro Linux 1 03-31-2009 04:23 PM
GnuWin32 2.4.12 (LibArchive branch) iBot Software Releases - RSS News 0 05-10-2008 06:40 PM
Changing windows server alias name on windows or unix? NycUnxer UNIX for Dummies Questions & Answers 1 03-26-2008 05:54 PM
GnuWin32 sed 4.1.4 regexp matching Simerian UNIX for Dummies Questions & Answers 2 06-23-2005 12:28 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-08-2009
HOLMBERG HOLMBERG is offline
Registered User
  
 

Join Date: May 2009
Posts: 1
Using SED on Windows xp-GnuWin32

I installed the GnuWin32 tools on my Windows XP system but I cannot .. for the life of me .. get the SED tool to work for me.

All I need to do is remove blank lines for a text file. My script is ...
Code:
sed -e '/^$/ d' xxx.txt > yyy.txt
The error msg is:
Code:
sed: -e expression #1, char 1: unknown command: `''
I've tried remove the single quotes, using the -f parameter, etc.

Do I need to do something re/DOS?

Thanks, Ms. Holmberg






Last edited by Yogesh Sawant; 05-08-2009 at 08:53 AM.. Reason: added code tags
  #2 (permalink)  
Old 05-08-2009
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,530
try double quotes instead of single.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0