discuss: proposal: text- and file-processing howto


Previous by date: 11 Jan 2004 06:17:39 -0000 Re: Revision history at end of document, Mendel Cooper
Next by date: 11 Jan 2004 06:17:39 -0000 Re: Revision history at end of document, Tabatha Marshall
Previous in thread: 11 Jan 2004 06:17:39 -0000 Re: proposal: text- and file-processing howto, Rodolfo J. Paiz
Next in thread: 11 Jan 2004 06:17:39 -0000 Re: proposal: text- and file-processing howto, Y Giridhar Appaji Nag

Subject: Re: proposal: text- and file-processing howto
From: Saqib Ali ####@####.####
Date: 11 Jan 2004 06:17:39 -0000
Message-Id: <Pine.GSO.4.55.0401102201330.21209@sjgcs1.stsj.seagate.com>

Carla,

The idea sounds good. I would like to see the document.

Thanks

Saqib Ali
-------------
http://validate.sf.net <---- DocBook XML -> HTML Convertor


On Sat, 10 Jan 2004, Carla Schroder wrote:

> Howdy all,
>
> I'm assembling a "Text- and File-Processing/Finding Things Howto". A sort of
> cookbook approach to using sed, awk, bash, Perl, find, grep, etc. Real-life
> actual useful code, like this:
>
> |awk '{t+=$1}END{print t}'
> Prints the total of numbers in column 1.  Useful for things like the
> output of du(1).
>
> dos2unix -n dos-file.txt linux-file.txt
> convert DOS file to Linux file format
>
> find / -uid 750 -ok chown -v  800 {} \;
> Locate files with $UID and chown to new UID. This stops at every file and
> prompts for confirmation. To "just do it":
> find / -uid 750 -exec chown -v  800 {} \;
>
> perl -pie 's/\bcarla\b/carlagoddess/g' *.txt
> Find and change bales of filenames. In this example from 'carla.txt' to
> 'carlagoddess.txt'
>
> It will be organized by function:
>
> Finding And Changing Filenames
> File Conversions
> Sorting Files
> Searching and Replacing File Contents
>
> etc etc, you get the idea.
>
> This will not be a static document, it's going to grow for as long as I can
> get people to contribute code snippets, and flog useful stuff out of my own
> elderly brain.
>
> I'm still working out the details, hopefully this is enough to get started on
> deciding if it's suitable for TLDP. Whatcha think?
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~
> Carla Schroder
> www.tuxcomputing.com
> this message brought to you
> by Libranet 2.8 and Kmail
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> ______________________
> http://lists.tldp.org/
>
>

Previous by date: 11 Jan 2004 06:17:39 -0000 Re: Revision history at end of document, Mendel Cooper
Next by date: 11 Jan 2004 06:17:39 -0000 Re: Revision history at end of document, Tabatha Marshall
Previous in thread: 11 Jan 2004 06:17:39 -0000 Re: proposal: text- and file-processing howto, Rodolfo J. Paiz
Next in thread: 11 Jan 2004 06:17:39 -0000 Re: proposal: text- and file-processing howto, Y Giridhar Appaji Nag


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.