Re: How to know % of read file in cat?

2013-03-11 Thread Richard Tobin
I use cat to read a file and pass it to another app, the command is this: camibar% cat file.git | fossil import --git file.fossil It takes a lot of time, file.git is 12GB, and i want to know if there's some 'magic' trick can I use to show me how many bytes or the % of the file.git cat

Re: How to know % of read file in cat?

2013-03-09 Thread Matthias Apitz
El día Saturday, March 09, 2013 a las 10:54:00AM +0100, Eduardo Morras escribió: Hello, I use cat to read a file and pass it to another app, the command is this: camibar% cat file.git | fossil import --git file.fossil It takes a lot of time, file.git is 12GB, and i want to know

Re: How to know % of read file in cat?

2013-03-09 Thread Hakisho Nukama
On Sat, Mar 9, 2013 at 9:54 AM, Eduardo Morras emorr...@yahoo.es wrote: Hello, I use cat to read a file and pass it to another app, the command is this: camibar% cat file.git | fossil import --git file.fossil It takes a lot of time, file.git is 12GB, and i want to know if there's some

Re: How to know % of read file in cat?

2013-03-09 Thread Polytropon
On Sat, 9 Mar 2013 10:54:00 +0100, Eduardo Morras wrote: Hello, I use cat to read a file and pass it to another app, the command is this: camibar% cat file.git | fossil import --git file.fossil It takes a lot of time, file.git is 12GB, and i want to know if there's some 'magic' trick

Re: How to know % of read file in cat?

2013-03-09 Thread Luís Fernando Schultz Xavier da Silveira
You might want to try the sysutils/pv port, which is a small program that works like cat, but provides a progress bar. On Sat, Mar 09, 2013 at 10:54:00AM +0100, Eduardo Morras wrote: Hello, I use cat to read a file and pass it to another app, the command is this: camibar% cat file.git

cat sort(1) sort floating point numbers?

2011-10-03 Thread Anton Shterenlikht
I tried sorting a file with a column of floating point numbers (below) with sort(1) -n. However, the numbers seem to have been sorted by the first digit only. TZAV cat numbers 3.895686170464136E-016 6.790214437463702E-003 4.163481430190832E-016 2.224131318975909E-002 4.024567914829249E-016

Re: cat sort(1) sort floating point numbers?

2011-10-03 Thread Jonathan McKeown
On Monday 03 October 2011 14:05:42 Anton Shterenlikht wrote: I tried sorting a file with a column of floating point numbers (below) with sort(1) -n. However, the numbers seem to have been sorted by the first digit only. sort -g Due to the GNU project's obsession with info

Re: Unexepcted behavior from read and cat

2008-05-13 Thread Erik Osterholm
On Mon, May 12, 2008 at 12:22:48PM -0700, Johan Dowdy wrote: For loops are your friend. I'd do something like: for i in `cat iplist` do dig +short -x $I done Even better: while read i do dig +short -x $i done iplist See the Useless Use of Cat Award for more details. Erik

Re: Unexepcted behavior from read and cat

2008-05-13 Thread Jonathan McKeown
On Monday 12 May 2008 20:59, Paul Schmehl wrote: I created a small list of IPs that I wanted to do digs on (because I'm lazy and don't want to do them one at a time.) [snip] WTF? Why do these utilities, which usually read all the lines in a file now only work once when run through dig? Is

Re: Unexepcted behavior from read and cat

2008-05-13 Thread Jonathan McKeown
On Tuesday 13 May 2008 18:23, Jonathan McKeown wrote: The comedy solution: lam -s '-x ' trydata | xargs dig +short and of course I meant iplist, not trydata: this was a cut'n'paste, and trydata is my scratch test data filename (often providing input to a script called try. Why isn't it

Re: Unexepcted behavior from read and cat

2008-05-13 Thread Johan Dowdy
to each line, but by then I might as well just do them individually. What am I missing? Never mind. This worked. (read line; dig +short -x `echo $line`; while read line; do dig +short -x `echo $line`; done) iplist I tend to use xargs -n1 with dig e.g cat iplist | xargs -n1 dig

Re: Unexepcted behavior from read and cat

2008-05-13 Thread Jonathan McKeown
[respecting Time's arrow] On Tuesday 13 May 2008 20:55, Johan Dowdy wrote: On 5/12/08 1:55 PM, RW [EMAIL PROTECTED] wrote: cat iplist | xargs -n1 dig +short -x I think this one wins for brevity. It can be made shorter: iplist xargs -n1 dig +short -x but it fires off multiple dig

Unexepcted behavior from read and cat

2008-05-12 Thread Paul Schmehl
I created a small list of IPs that I wanted to do digs on (because I'm lazy and don't want to do them one at a time.) I then wrote the following on the commandline: % dig +short -x `cat iplist` The results was an answer for the first line only. So, I thought read line would do the trick. I

Re: Unexepcted behavior from read and cat

2008-05-12 Thread Paul Schmehl
--On Monday, May 12, 2008 13:59:47 -0500 Paul Schmehl [EMAIL PROTECTED] wrote: Sure, I can edit the file and prepend +short -x to each line, but by then I might as well just do them individually. What am I missing? Never mind. This worked. (read line; dig +short -x `echo $line`; while read

Re: Unexepcted behavior from read and cat

2008-05-12 Thread Chuck Swiger
On May 12, 2008, at 11:59 AM, Paul Schmehl wrote: WTF? Why do these utilities, which usually read all the lines in a file now only work once when run through dig? Is there a way to feed dig a list of IPs and have it return each and every one of them? The dig which comes with BIND 9

Re: Unexepcted behavior from read and cat

2008-05-12 Thread Mario Lobo
On Monday 12 May 2008, Paul Schmehl wrote: I created a small list of IPs that I wanted to do digs on (because I'm lazy and don't want to do them one at a time.) I then wrote the following on the commandline: % dig +short -x `cat iplist` The results was an answer for the first line only

Re: Unexepcted behavior from read and cat

2008-05-12 Thread Johan Dowdy
For loops are your friend. I'd do something like: for i in `cat iplist` do dig +short -x $I done -J On 5/12/08 11:59 AM, Paul Schmehl [EMAIL PROTECTED] wrote: dig +short -x `cat iplist` -- Johan Dowdy - CISSP Senior Systems Administrator nCircle Network Security 415.318.2880 Any

Re: Unexepcted behavior from read and cat

2008-05-12 Thread RW
missing? Never mind. This worked. (read line; dig +short -x `echo $line`; while read line; do dig +short -x `echo $line`; done) iplist I tend to use xargs -n1 with dig e.g cat iplist | xargs -n1 dig +short -x ___ freebsd-questions@freebsd.org

/bin/cat: Permission denied

2006-06-26 Thread Viktoras Veitas
Hello. I suddenly cannot run cat command as /bin/cat file appears to be without execute permissions (all other files in /bin directory are with them) and I get /bin/cat: Permission denied error. I had a misfortune to chmod 555 /bin/cat, then my machine panicked (when trying to run cat

Re: /bin/cat: Permission denied

2006-06-26 Thread jdow
From: Viktoras Veitas [EMAIL PROTECTED] Hello. I suddenly cannot run cat command as /bin/cat file appears to be without execute permissions (all other files in /bin directory are with them) and I get /bin/cat: Permission denied error. I had a misfortune to chmod 555 /bin/cat, then my

Re: /bin/cat: Permission denied

2006-06-26 Thread Micah
jdow wrote: From: Viktoras Veitas [EMAIL PROTECTED] Hello. I suddenly cannot run cat command as /bin/cat file appears to be without execute permissions (all other files in /bin directory are with them) and I get /bin/cat: Permission denied error. I had a misfortune to chmod 555 /bin/cat

Re: cat /proc/cpuinfo ?

2006-03-27 Thread Dhénin Jean-Jacques
of boxes under my desk here at home and between the Ultra-10, FreeBSD-5.4 and 6.0 and SuSE I get confused and that's what happened when I tried to type the following on my FreeBSD box. cat /proc/cpuinfo [] Is there some *BSD port that will give me CPU information like the above

Re: cat /proc/cpuinfo ?

2006-03-27 Thread Michael P. Soulier
On 27/03/06 Dhénin Jean-Jacques said: pkg_add cpuid and :; cpuid eax ineax ebx ecx edx 0002 756e6547 6c65746e 49656e69 0001 0f27 0001080a 0400 bfebfbff 0002 665b5101 003b7040 8000 8004

Re: cat /proc/cpuinfo ?

2006-03-27 Thread Dhénin Jean-Jacques
:; dmidecode ... Version: Intel(R) Celeron(R) Voltage: 1.5 V External Clock: 130 MHz Max Speed: 3200 MHz Current Speed: 2865 MHz Status: Populated, Enabled Upgrade: ZIF Socket L1 Cache Handle: 0x0009 L2 Cache Handle:

cat /proc/cpuinfo ?

2006-03-26 Thread Bill Schoolcraft
Hello Family, Yes, yes, I know... I have a bunch of boxes under my desk here at home and between the Ultra-10, FreeBSD-5.4 and 6.0 and SuSE I get confused and that's what happened when I tried to type the following on my FreeBSD box. cat /proc/cpuinfo What I did get off my other box, where

Re: cat /proc/cpuinfo ?

2006-03-26 Thread Rob W.
: cat /proc/cpuinfo ? Hello Family, Yes, yes, I know... I have a bunch of boxes under my desk here at home and between the Ultra-10, FreeBSD-5.4 and 6.0 and SuSE I get confused and that's what happened when I tried to type the following on my FreeBSD box. cat /proc/cpuinfo What I did get off my

Re: cat /proc/cpuinfo ?

2006-03-26 Thread Bill Schoolcraft
... I have a bunch of boxes under my desk here at home and between the Ultra-10, FreeBSD-5.4 and 6.0 and SuSE I get confused and that's what happened when I tried to type the following on my FreeBSD box. cat /proc/cpuinfo What I did get off my other box, where this command works

Re: cat /proc/cpuinfo ?

2006-03-26 Thread Norberto Meijome
the following on my FreeBSD box. cat /proc/cpuinfo [] Is there some *BSD port that will give me CPU information like the above from the command line? You want the linux /proc behaviour. 1) make sure you have linux binary compatibility installed $ pkg_info | grep linux_base linux_base-8

RE: cat /dev/urandom

2005-07-28 Thread mdff
shell# cat /dev/urandom can that executed as root cause any harm to the system? What if a random sequence of `rm *` was generated... would it be executed? the question is: WHAT FOR should someone logged in as root execute cat /dev/urandom without redirecting the output? anyway, from

cat /dev/urandom

2005-07-26 Thread Matt Juszczak
Hi all, Quick question. shell# cat /dev/urandom can that executed as root cause any harm to the system? What if a random sequence of `rm *` was generated... would it be executed? I tried that to fix my terminal and forgot it might cause damage as root, even if its just being cat'd

Re: cat /dev/urandom

2005-07-26 Thread Michael Beattie
On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote: Hi all, Quick question. shell# cat /dev/urandom can that executed as root cause any harm to the system? What if a random sequence of `rm *` was generated... would it be executed? I tried that to fix my terminal and forgot it might

Re: cat /dev/urandom

2005-07-26 Thread Lane
On Tuesday 26 July 2005 17:35, Michael Beattie wrote: On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote: Hi all, Quick question. shell# cat /dev/urandom can that executed as root cause any harm to the system? What if a random sequence of `rm *` was generated... would

Re: cat /dev/urandom

2005-07-26 Thread Michael Beattie
`cat /dev/urandom` will do just that... it's not also going to run code from within that output. On 7/26/05, Lane [EMAIL PROTECTED] wrote: On Tuesday 26 July 2005 17:35, Michael Beattie wrote: On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote: Hi all, Quick question. shell# cat

Re: cat /dev/urandom

2005-07-26 Thread Lane
On Tuesday 26 July 2005 18:18, Michael Beattie wrote: `cat /dev/urandom` will do just that... it's not also going to run code from within that output. On 7/26/05, Lane [EMAIL PROTECTED] wrote: On Tuesday 26 July 2005 17:35, Michael Beattie wrote: On 7/26/05, Matt Juszczak [EMAIL PROTECTED

Re: cat /dev/urandom

2005-07-26 Thread Michael Beattie
On 7/26/05, Lane [EMAIL PROTECTED] wrote: On Tuesday 26 July 2005 18:18, Michael Beattie wrote: `cat /dev/urandom` will do just that... it's not also going to run code from within that output. On 7/26/05, Lane [EMAIL PROTECTED] wrote: On Tuesday 26 July 2005 17:35, Michael Beattie

cat /dev/urandom

2005-07-26 Thread Bob Johnson
Tue, Jul 26, 2005 at 6:32 PM Matt Juszczak [EMAIL PROTECTED] Hi all, Quick question. shell# cat /dev/urandom can that executed as root cause any harm to the system? What if a random sequence of `rm *` was generated... would it be executed? Not from a virtual terminal

Re: cat /dev/urandom

2005-07-26 Thread Lane
On Tuesday 26 July 2005 18:47, Michael Beattie wrote: On 7/26/05, Lane [EMAIL PROTECTED] wrote: On Tuesday 26 July 2005 18:18, Michael Beattie wrote: `cat /dev/urandom` will do just that... it's not also going to run code from within that output. On 7/26/05, Lane [EMAIL PROTECTED

Re: cat /dev/urandom

2005-07-26 Thread Lowell Gilbert
Lane [EMAIL PROTECTED] writes: On Tuesday 26 July 2005 17:35, Michael Beattie wrote: On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote: Hi all, Quick question. shell# cat /dev/urandom can that executed as root cause any harm to the system? What if a random sequence

Re: cat /dev/urandom

2005-07-26 Thread Gary W. Swearingen
I don't use backticks, so this'll have the equivalent $(). The command: cat /dev/urandom is passed to the shell and the shell executes cat and sends the output to the screen without possibility of executing anything (except the magic stuff recognized by your terminal emulator -- I hope it can't

Re: cat /dev/urandom

2005-07-26 Thread Lane
On Tuesday 26 July 2005 20:03, you wrote: I don't use backticks, so this'll have the equivalent $(). The command: cat /dev/urandom is passed to the shell and the shell executes cat and sends the output to the screen without possibility of executing anything (except the magic stuff recognized

Re: cat /dev/urandom

2005-07-26 Thread Gary W. Swearingen
Lane [EMAIL PROTECTED] writes: I think the backticks (and shell variables) actually send the output to a pipe, not the screen. I don't know why you said either part of that. I didn't imply the latter and AFAIK the former is untrue (unless you ask the shell to send their output to a pipe);

Re: cat /dev/urandom

2005-07-26 Thread Lane
like the guy was speaking all in terms of screens, and I knew that my experience had that output usually going somewhere other than the screen ... mostly to a pipe. Just typed too soon, and didn't proof, I guess. I hope no harm has been done. For anyone listening don't type `cat /dev/urandom

Including xhtml11.cat in SGML_CATALOG_FILES confuses OpenJade

2005-05-08 Thread Idar Tollefsen
I asked this question over a week ago, but got no answer. I'll give it one more shot. If someone knowns of a better forum for this, please let me know. /usr/local/share/sgml/catalog - /usr/local/share/sgml/catalog.ports). There's something about xhtml11.cat that makes some of the installed

Re: Cat a directory

2003-10-19 Thread Nicholas Holley
Karlsson Mikael HKI/SOSV wrote: And while we're on the subject of different file types why doesn't ls support coloring of different file types like in Linux. As it would make finding certain files easier by coloring them differently depending on their ending. Try http://www.mandrakelinux.com/en/

Re: Re:Re: Cat a directory

2003-09-25 Thread Jerry McAllister
However, the purpose of cat is to write the contents of a file to STDOUT. And yes, in UNIX pretty much everything is considered a file. But that does not change the fact that people do not experience a directory as a file, and in their use of language also clearly differentiate between

Re: Re:Re: Cat a directory

2003-09-25 Thread Mark
- Original Message - From: Jerry McAllister [EMAIL PROTECTED] To: Mark [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:21 PM Subject: Re: Re:Re: Cat a directory But nonetheless very illustrative of how the OS takes into consideration an unexpected

Re: Re:Re: Cat a directory

2003-09-25 Thread Mark
[it seems I forgot a paragraph] - Original Message - From: Jerry McAllister [EMAIL PROTECTED] To: Mark [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:21 PM Subject: Re: Re:Re: Cat a directory I would like to see a switch added to cat, like -d, which

Re: Re:Re: Cat a directory

2003-09-25 Thread Jerry McAllister
Now, either contribute something or be done with it. I contributed a few clear, well-argumented reasons in favor of my position ^^^ wrong reasons that cat should change its default behavior. You, otoh, have only demonstrated that you

Re: Re:Re: Cat a directory

2003-09-24 Thread Mark
- Original Message - From: Matthew Hunt [EMAIL PROTECTED] To: Karlsson Mikael HKI/SOSV [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:26 PM Subject: Re: Re:Re: Cat a directory cat /bin on Solaris 9 does exactly the same thing as on FreeBSD; shows the contents

Re:Re: Cat a directory

2003-09-23 Thread Karlsson Mikael HKI/SOSV
reign or maybe always been that way. Other *NIX systems seem to have done this to their cat program so why can't FreeBSD? See above. FreeBSD has a better view of the world than some of the kiddie OSes. Yes, you're absolutly right that FreeBSD has a better view of the world then other OSes

Re:Re: Cat a directory

2003-09-23 Thread David Fleck
On Tue, 23 Sep 2003, Karlsson Mikael HKI/SOSV wrote: [...] which are all supported in for example GNU/Linux ls, except 10 and 11, but then they have an extra option to put different coloring on files with a special ending. So that archives, moviefiles, soundfiles etc. have a special color

Re: Re: Cat a directory

2003-09-23 Thread Jerry McAllister
On Tue, 23 Sep 2003, Karlsson Mikael HKI/SOSV wrote: [...] which are all supported in for example GNU/Linux ls, except 10 and 11, but then they have an extra option to put different coloring on files with a special ending. So that archives, moviefiles, soundfiles etc. have a special

Re:Re:Re: Cat a directory

2003-09-22 Thread Karlsson Mikael HKI/SOSV
Read my first post before reading this thing so you'll be on the right track Warren Block wrote (19.9.2003 17:41): Says who? cat works fine on binary files. The problem you are having is that people are using cat to *display* files. Fixing that problem could break cat for its more

Re: Cat a directory

2003-09-22 Thread Mark Terribile
I hesitate to step into the fray; it appears that the phrase `more heat than light' now applies. But ... Says who? cat works fine on binary files. The problem you are having is that people are using cat to *display* files. Fixing that problem could break cat for its more standard use

Re: Cat a directory

2003-09-22 Thread Chris Pressey
On 22 Sep 2003 09:06:00 +0300 Karlsson Mikael HKI/SOSV [EMAIL PROTECTED] wrote: [...] Ruben de Groot wrote (19.9.2003 13:34): So why don't you for example alias cat to cat -v in your system profile and login scripts? This will display non-printing characters so they are visible and don't

Re: Cat a directory

2003-09-22 Thread Damian Gerow
Thus spake Chris Pressey ([EMAIL PROTECTED]) [22/09/03 11:54]: Also, I believe 'GNU ls', in the ports, supports coloured directory listings. As does FreeBSD's ls. From 'man 1 ls': -G Enable colorized output. This option is equivalent to defining CLICOLOR in the

Re: Cat a directory

2003-09-22 Thread Matthew Seaman
On Mon, Sep 22, 2003 at 08:54:16AM -0700, Chris Pressey wrote: Also, I believe 'GNU ls', in the ports, supports coloured directory listings. Have you tried typing 'ls -G' using the system ls(1) recently? Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil.

Re: Re:Re: Cat a directory

2003-09-22 Thread Matthew Hunt
On Mon, Sep 22, 2003 at 09:06:00AM +0300, Karlsson Mikael HKI/SOSV wrote: Try to run for example cat /bin in Linux, HP-UX, Solaris and other *NIXes and I'm 90% certain that they will not show the directory but an error message saying something. cat /bin on Solaris 9 does exactly the same

Re: Cat a directory

2003-09-22 Thread Chris Pressey
On Mon, 22 Sep 2003 12:01:15 -0400 Damian Gerow [EMAIL PROTECTED] wrote: Thus spake Chris Pressey ([EMAIL PROTECTED]) [22/09/03 11:54]: Also, I believe 'GNU ls', in the ports, supports coloured directory listings. As does FreeBSD's ls. From 'man 1 ls': -GEnable

Re: Re:Re: Cat a directory

2003-09-22 Thread Jerry McAllister
Read my first post before reading this thing so you'll be on the right track Other *NIX systems seem to have done this to their cat program so why can't FreeBSD? See above. FreeBSD has a better view of the world than some of the kiddie OSes. Try to run for example cat /bin

Re: Cat a directory

2003-09-22 Thread Warren Block
Karlsson Mikael HKI/SOSV [EMAIL PROTECTED] wrote: So it's better for a newbie to get understandable jibrish from cat when run on directories then an error message stating that they are trying to run cat on a directory like ls says when they try to run ls on a file. But as I said earlier who

Re: Re: Cat a directory

2003-09-19 Thread Ruben de Groot
On Fri, Sep 19, 2003 at 08:27:00AM +0300, Karlsson Mikael HKI/SOSV typed: OK! I admit that it isn't THE BIGGEST problem for me BUT it is A problem. What I ment in my last mail was that it is the biggest problem concerning cat. Since someone always seems to cat a binary file without having

Re:Re: Cat a directory

2003-09-19 Thread Warren Block
On Thu, 19 Sep 2003, Karlsson Mikael HKI/SOSV wrote: I personally think that some of these tests should be added to the real distributable version of cat that comes with FreeBSD cause I can't be the only one that this bugs. I mean what could a little more code hurt to the program since cat

Cat a directory

2003-09-18 Thread Karlsson Mikael HKI/SOSV
I've noticed along time that it's possible to cat a directory. I just don't see the point of it being possible to do so since it only returns jibrish. I know that in Linux for example cat returns an error message like this: cat: mail/: Is a directory. I also noticed that in both FreeBSD and Linux

Re: Cat a directory

2003-09-18 Thread Dan Nelson
In the last episode (Sep 18), Karlsson Mikael HKI/SOSV said: What I just wanted to ask was if it's absolutely necessary for cat to be able to work on directories. Or if it would be possible to simply add a check to cat that tests if the file being opened is a directory and then exits

Re:Re: Cat a directory

2003-09-18 Thread Karlsson Mikael HKI/SOSV
OK! I admit that it isn't THE BIGGEST problem for me BUT it is A problem. What I ment in my last mail was that it is the biggest problem concerning cat. Since someone always seems to cat a binary file without having the knowledge of what it causes. I personally think that some of these tests

Re: Re: Cat a directory

2003-09-18 Thread Bill Campbell
On Fri, Sep 19, 2003, Karlsson Mikael HKI/SOSV wrote: OK! I admit that it isn't THE BIGGEST problem for me BUT it is A problem. What I ment in my last mail was that it is the biggest problem concerning cat. Since someone always seems to cat a binary file without having the knowledge of what

cat get sylpheed-claws 0.9.0 to make on freebsd-5.1

2003-06-13 Thread SweeTLeaF
After i run ./configure ...successfully i suppose there were no error messagesi try to run make but the process stops with the following: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include/glib12 -D_THREAD_SAFE -DLOCALEDIR=\/usr/local/share/locale\ -g -O2 -c mgutils.c -fPIC -DPIC -o

Re: cat

2003-03-05 Thread Viktor Lazlo
On Wed, 26 Feb 2003, Tijl Coosemans wrote: I want to remove CRs from text files so what I did is this: cat filename | tr -d '\r' filename However, I often end up with an empty file. Just out of interest, somebody who knows why that is? This is because prior to any other action the shell

Re: cat

2003-02-27 Thread Franklin Pierce
- Original Message - From: Shantanu Mahajan [EMAIL PROTECTED] Date: Thu, 27 Feb 2003 11:05:27 +0530 To: Tijl Coosemans [EMAIL PROTECTED] Subject: Re: cat +++ Tijl Coosemans [freebsd] [26-02-03 17:56 +0100]: | I want to remove CRs from text files so what I did is this: | | cat

Re: cat

2003-02-27 Thread Franklin Pierce
- Original Message - From: Matthew Seaman [EMAIL PROTECTED] Date: Wed, 26 Feb 2003 17:14:56 + To: [EMAIL PROTECTED] Subject: Re: cat On Wed, Feb 26, 2003 at 05:56:13PM +0100, Tijl Coosemans wrote: I want Sip (Note too the influence of the Society for the Suppression

Re: cat

2003-02-27 Thread Cliff Sarginson
The ultimate answer is that the shell interpets the first, truncating the output file to 0. Quickest way to make a file null bytes long (in sh type shells, not in (t(csh) type): $ filename In bash (also in ksh I think) you can tell the shell not to clobber an existing file, I think the command

cat

2003-02-26 Thread Tijl Coosemans
I want to remove CRs from text files so what I did is this: cat filename | tr -d '\r' filename However, I often end up with an empty file. Just out of interest, somebody who knows why that is? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body

Re: cat

2003-02-26 Thread Krzysztof Parzyszek
On Wed, Feb 26, 2003 at 05:56:13PM +0100, Tijl Coosemans wrote: I want to remove CRs from text files so what I did is this: cat filename | tr -d '\r' filename However, I often end up with an empty file. Just out of interest, somebody who knows why that is? Because the shell can open

Re: cat

2003-02-26 Thread Willie Viljoen
On Wednesday 26 February 2003 18:56, someone, possibly Tijl Coosemans, typed: I want to remove CRs from text files so what I did is this: cat filename | tr -d '\r' filename However, I often end up with an empty file. Just out of interest, somebody who knows why that is? Not a clue

Re: cat

2003-02-26 Thread Kliment Andreev
I want to remove CRs from text files so what I did is this: cat filename | tr -d '\r' filename It's easier with 'tr' but you can also use vi. # vi text.txt :1,$s/^M//g where ^M means that you need to hit Ctrl-V. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe

Re: cat

2003-02-26 Thread Matthew Seaman
On Wed, Feb 26, 2003 at 05:56:13PM +0100, Tijl Coosemans wrote: I want to remove CRs from text files so what I did is this: cat filename | tr -d '\r' filename However, I often end up with an empty file. Just out of interest, somebody who knows why that is? Hmmm... That's a nasty race

Re: cat

2003-02-26 Thread Giorgos Keramidas
On 2003-02-26 17:56, Tijl Coosemans [EMAIL PROTECTED] wrote: I want to remove CRs from text files so what I did is this: cat filename | tr -d '\r' filename However, I often end up with an empty file. Just out of interest, somebody who knows why that is? The shell opens filename for input

Re: cat

2003-02-26 Thread Shantanu Mahajan
+++ Tijl Coosemans [freebsd] [26-02-03 17:56 +0100]: | I want to remove CRs from text files so what I did is this: | | cat filename | tr -d '\r' filename | | However, I often end up with an empty file. Just out of | interest, somebody who knows why

Cat.

2003-02-14 Thread Charlie ROOT
Hi. If I will have a command running lets say every 5th hour, how do I typ?? the command is: cat resolv.conf /etc/resolv.conf Thanks. // Per To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message

Re: Cat.

2003-02-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2003-02-14 18:40:50 +0100: Hi. If I will have a command running lets say every 5th hour, how do I typ?? the command is: cat resolv.conf /etc/resolv.conf see crontab(1) and crontab(5) -- If you cc me or remove the list(s) completely I'll most likely ignore your

Re: Cat.

2003-02-14 Thread Bill Moran
Charlie ROOT wrote: Hi. If I will have a command running lets say every 5th hour, how do I typ?? the command is: cat resolv.conf /etc/resolv.conf The information you are looking for is in the crontab manpage (as someone else pointed out) Although I'd like to point out an alternative. Any