Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th March 2009, 09:10 PM
cpri Offline
Registered User
 
Join Date: Jun 2004
Posts: 116
Edit the output to a file

Hello

With a bat file I call two functions (date and ping) sequentially
The output of the two function I pipeline to a file.
With the use of grep and some formating, my output file is like this
Code:
DATE 2009-03-28 21:04:33
64 bytes from 123.123.123.1: icmp_seq=1 ttl=58 time=3.55 ms
Now I like to avoid the Line feed after calling the date function.
The reason for this is that I want to put the output of my bat file at one single line in my output file

I hope this is possible
Reply With Quote
  #2  
Old 28th March 2009, 09:24 PM
bee Offline
Banned
 
Join Date: Jun 2008
Posts: 1,315
Quote:
Originally Posted by cpri View Post
Hello

With a bat file I call two functions (date and ping) sequentially
The output of the two function I pipeline to a file.
With the use of grep and some formating, my output file is like this
Code:
DATE 2009-03-28 21:04:33
64 bytes from 123.123.123.1: icmp_seq=1 ttl=58 time=3.55 ms
Now I like to avoid the Line feed after calling the date function.
The reason for this is that I want to put the output of my bat file at one single line in my output file

I hope this is possible
Post your script because i'm not sure i've have understand
Maybe you were asking about:
Code:
date | tr -d '\n'
$ date | tr -d '\n'
$ takethetime=$(date | tr -d '\n')
$ echo "$takethetime"

bye!!!!!!!!!!!!!!!!
Reply With Quote
  #3  
Old 28th March 2009, 09:36 PM
cpri Offline
Registered User
 
Join Date: Jun 2004
Posts: 116
Ok thanks it works
Reply With Quote
Reply

Tags
edit, file, output

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
output a file to ternimal but keep the output updated Saint Mike Using Fedora 2 30th December 2006 11:22 AM
Bash script - File search output to new file ampapa Using Fedora 12 19th October 2006 01:49 AM
anything can be used to edit pdf file? fedoradebut Using Fedora 0 3rd April 2006 05:31 PM
How do I edit file (php.ini) guruleenyc Using Fedora 5 18th March 2005 01:16 PM
i can't edit a file! pico / edit bad commands? virtuoso Using Fedora 8 9th November 2004 08:45 PM


Current GMT-time: 08:27 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat