Re: Contacts printing



On Mon, Oct 29, 2007 at 05:41:21PM -0400, Douglas A. Tutty wrote:

Then, as I see it, you have two choices:

1. Take the opportunity to learn Python.

2. Cat the files together from the command line.

Easiest way is to put them all in one directory (with nothing
else) and issue:

$ cat * > contacts.txt

A problem may occur if you run this again after contacts.txt already
exists, since you'd be telling it to cat from and to the same file.
On some systems this might run away and create a very large file, though
on my sid box (with bash 3.1dfsg-8) it seems to work ok, emitting a
warning:

ken@hayes:/tmp/foo/ $ cat * > contacts.txt
ken@hayes:/tmp/foo/ $ cat * > contacts.txt
cat: contacts.txt: input file is output file

Workarounds could be to cat to a file in some other directory, or
specify a filename pattern that only matches the target files.

Ken

You now have everything in one file.

Then put it in an editor and start manual sorting.

Doug.

--
Ken Irving, fnkci+debianuser@xxxxxxx


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: An inquiry
    ... then I'm not sure I know how google formats gmail.] ... Output of lsmod | grep snd ... Output of cat /dev/snd/stat No such file or directory. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: OpenGL glxgears demo program
    ... cat /var/log/Xorg.0.log | grep EE ... Modify settings or unsubscribe at: ...
    (Ubuntu)
  • Re: get no sound with xmms/xine
    ... Then maybe we should check if your sound devices are created at all in ... $ cat /proc/asound/cards ... layer for applications which still use the old OSS interface to access ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Contacts printing
    ... Grep is to search for string within files, how can it do sorting jobs? ... I want to cat all those file into one file and then sort the above entries, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Contacts printing
    ... parse the files and format it to your liking then just print it out. ... I want to cat all those file into one file and then sort the above entries, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)