First  |  Prev |  Next  |  Last
Pages: 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
Useful use of cat? (was Re: This Week's Useless Use of Cat Awardgoes ?to...)
Sven Mascheck wrote: Janis wrote: cat file | cmd A workaround for commands which have been compiled without largefile support but accept a pipe, e.g. compressing utilities. I am puzzled about this one. Why is it a problem for (some?) compression programs to read the file from a no... 24 Feb 2010 18:51
Useful use of cat? (was Re: This Week's Useless Use of Cat Award goes ?to...)
Janis wrote: cat file | cmd A workaround for commands which have been compiled without largefile support but accept a pipe, e.g. compressing utilities. I am puzzled about this one. Why is it a problem for (some?) compression programs to read the file from a non-pipe stdin channel ... 25 Feb 2010 19:23
How do I search for multiple occurrences of something on the same line?
Hi, I'm using Mac OS 10.5.6. I want to search through a group of files and determine which files have the string "styleClass" more than once in the same line. So for example, if one file contained ... ===Begin===== Hi there Bye styleClass styleClass bye ====End===== that would satisfy the conditions, ... 24 Feb 2010 15:24
Useful use of cat? (was Re: This Week's Useless Use of Cat Awardgoes to...)
pk wrote: Janis wrote: * largefile problems (Darren Dunham in c.u.s) cat file | cmd A workaround for commands which have been compiled without largefile support but accept a pipe, e.g. compressing utilities. I am puzzled about this one. Why is it a proble... 24 Feb 2010 14:16
Retain quotes when passing arguments to another script
Hi! I have a suite of programs, say kd-list, kd-process, kd-process-file and kd-unmark. I want to create a wrapper script, kd, allowing me to call the scripts like this: `kd list arg1 arg2 ...`. Many programs have an interface similar to this, git e.g. In kd I'm currently doing sth like this: command="$1"... 25 Feb 2010 03:41
Processing 100 output files
Hi, My program creates 100 output files each having 9 columns and 150 rows. The first 5 (out of 9) columns is the same in all 100 files. I am trying to parse all the files so that my final file will have the first 5 columns and 2 columns (7,9) from each file. Is there an elegant way of doing this? I have trie... 24 Feb 2010 10:50
Useful use of cat? (was Re: This Week's Useless Use of Cat Award goes to...)
On 24 Feb., 00:13, pk <p...(a)pk.invalid> wrote: Seebs wrote: I actually did find a fascinating example of a Useful Use of Cat: cat "$@" | <command> This converts a plain filter which only works on standard input to a smart filter which accepts standard input or a list of files.  (Assuming a ... 24 Feb 2010 14:16
Rotation of logs
Hi All, I need a script to rotate logs in /var/log/httpd for every two days. and i want to move the old logs to different location and then delete the logs . Please help in this i am using Redhat linux. Thanks in Advance Lakshman. ... 24 Feb 2010 03:08
FS Monitor
Hi: I´m looking for a script to monitor FS and send me an email when FS hit max value below: /usr/nova/asm - 95% /usr/basm/asm - 93% /usr/rasm/anchor - 91% Thanks. ... 8 Mar 2010 08:34
This Week's Useless Use of Cat Award goes to... (was Re: Comparing with string "$end" in tcsh)
This Week's Useless Use of Cat Award goes to Melvin <whereismelvin(a)gmail.com>, who writes: set string1 = `cat file|tail -1` And of course, if you've been following along for a week or two, you know that this (BING!) is a Useless Use of Cat! Rememeber, nearly all cases where you have: cat file | some... 23 Feb 2010 22:44
First  |  Prev |  Next  |  Last
Pages: 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47