Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 31st, 2009, 09:10 PM
epanagio's Avatar
epanagio epanagio is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Posts: 660 epanagio User rank is Second Lieutenant (5000 - 10000 Reputation Level)epanagio User rank is Second Lieutenant (5000 - 10000 Reputation Level)epanagio User rank is Second Lieutenant (5000 - 10000 Reputation Level)epanagio User rank is Second Lieutenant (5000 - 10000 Reputation Level)epanagio User rank is Second Lieutenant (5000 - 10000 Reputation Level)epanagio User rank is Second Lieutenant (5000 - 10000 Reputation Level)epanagio User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 5 h 32 m 17 sec
Reputation Power: 94
Removing the return from end of line

I have a file that I need to remove the return character from the end of each line. There must be a way to do it with a script.

Thanks,
__________________
Evan

Reply With Quote
  #2  
Old December 18th, 2009, 10:56 PM
drgroove's Avatar
drgroove drgroove is offline
Moderator Emeritus
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Feb 2002
Location: Scottsdale, AZ
Posts: 7,174 drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Days 23 h 48 m 33 sec
Reputation Power: 2131
You could use Textpad, and create a Macro to do this... just one way.
__________________
DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Need ServiceNow consulting or ITIL process design? Connect with me on LinkedIn

Reply With Quote
  #3  
Old July 1st, 2010, 07:04 PM
tararadam tararadam is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2010
Location: Bulgaria
Posts: 3 tararadam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 20 m 6 sec
Reputation Power: 0
I have a small tool for this

I have a small tool written in AutoIt.
It reads your file and removes enter, then writes in another file.
I have included the compiled .exe in today's promotions on my site.
You can download it from there or use the code below and compile by yourself:

$n = InputBox("filename","enter the filename - must be in SAME folder with script!",'')
$f = FileOpen($n, 0)
$f1 = FileOpen($n & '-result.txt', 2)
While 1
$l = FileReadLine($f)
If @error = -1 Then ExitLoop
$l1 = StringReplace($l, @CRLF, '')
FileWrite($f1, $l1)
WEnd
FileClose($f)
FileClose($f1)
MsgBox(0, 'Ready!', "Your new file is " & $n & '-result.txt')

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Removing the return from end of line

Developer Shed Advertisers and Affiliates



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap