Yahoo : Winternet : TC Guide  : Files of Local Interest Enter Sysinfo.com :

Subject: Re: what is foobar ?
Subject: Re: Sort news file?
Subject: Re: Running a mud on shell port?
Subject: Re: How do I combine find and cp?
Subject: Re: Q's for prospective Unix administrator
Subject: Re: ps on more then one machine
Subject: Unix hack
Subject: Re: Variable Name?
Subject: Re: Was wondering...
Subject: Re: Putting the date into a script variable
Subject: Q: How to use $vars with the "ed" Editor?
Subject: Re: Fingering command-Need help
Subject: Re: *** HELP *** tar problem
Subject: Re: Newbie question - re: cut
Subject: Re: sort file delimiter question
Subject: Re: sort file delimiter question
Subject: Re: How to break a big file
Subject: Re: Line splitting long lines
Subject: Re: Removing control M's from files > ^M <
Subject: Re: diff question
Subject: Re: FTP directories
Subject: Re: echoing bold?
Subject: Re: Can I direct UNIX STDOUT directly into specific port on a
Subject: Re: Turning off iP forwarding?
Subject: Re: Help: Backup up tapes via ssh/ssh2
Subject: Re: How to copy large file to floppy (span disks on Sparc2 box)



From: jlthomas@umd.umich.edu (Jeffrey L. Thomas)
Newsgroups: comp.unix.questions
Subject: Re: what is foobar ?
Date: 25 Jul 1995 15:13:31 -0400
Lines: 149

jleslie@dmccorp.com (Jerry Leslie) writes:
>Gary M. Baker (gbaker@cs.umb.edu) wrote:
>: I frequently see the word foobar in unix land and am
>: wondering how it originated what it is used for etc

>My guess it it's a derivative of the "fubar" acronym:
>   F__ed Up Beyond All Recognition

At times like this its a good think to check the jargon file

from jargon file v3.2

----------------------------------------------------------------------

foobar n. <P> Another common metasyntactic variable; see
foo. Hackers do not generally use this to mean FUBAR in
either the slang or jargon sense.

----------------------------------------------------------------------

foo /foo/ <P> 1. interj. Term of disgust. 2. Used very generally as a
sample name for absolutely anything, esp. programs and files (esp.
scratch files). 3. First on the standard list of metasyntactic
variables used in syntax examples. See also bar, baz,
qux, quux, corge, grault, garply,
waldo, fred, plugh, xyzzy, thud.

The etymology of hackish `foo' is obscure. When used in connection
with `bar' it is generally traced to the WWII-era Army slang acronym
FUBAR (`Fucked Up Beyond All Repair'), later bowdlerized to
foobar. (See also FUBAR).

However, the use of the word `foo' itself has more complicated
antecedents, including a long history in comic strips and cartoons.
The old "Smokey Stover" comic strips by Bill Holman often included the
word `FOO', in particular on license plates of cars; allegedly, `FOO'
and `BAR' also occurred in Walt Kelly's "Pogo" strips. In the 1938
cartoon "The Daffy Doc", a very early version of Daffy Duck holds up a
sign saying "SILENCE IS FOO!"; oddly, this seems to refer to some
approving or positive affirmative use of foo. It has been suggested
that this might be related to the Chinese word `fu' (sometimes
transliterated `foo'), which can mean "happiness" when spoken with the
proper tone (the lion-dog guardians flanking the steps of many Chinese
restaurants are properly called "fu dogs").

Paul Dickson's excellent book "Words" (Dell, 1982, ISBN 0-440-52260-7)
traces "Foo" to an unspecified British naval magazine in 1946, quoting
as follows: "Mr. Foo is a mysterious Second World War product, gifted
with bitter omniscience and sarcasm."

Earlier versions of this entry suggested the possibility that hacker
usage actually sprang from "FOO, Lampoons and Parody", the title of a
comic book first issued in September 1958, a joint project of Charles
and Robert Crumb. Though Robert Crumb (then in his mid-teens) later
became one of the most important and influential artists in
underground comics, this venture was hardly a success; indeed, the
brothers later burned most of the existing copies in disgust. The
title FOO was featured in large letters on the front cover. However,
very few copies of this comic actually circulated, and students of
Crumb's `oeuvre' have established that this title was a reference to
the earlier Smokey Stover comics.

An old-time member reports that in the 1959 "Dictionary of the TMRC
Language", compiled at TMRC there was an entry that went
something like this:

  FOO: The first syllable of the sacred chant phrase "FOO MANE PADME
  HUM." Our first obligation is to keep the foo counters turning.



For more about the legendary foo counters, see TMRC. Almost the
entire staff of what became the MIT AI LAB was involved with TMRC, and
probably picked the word up there.

Very probably, hackish `foo' had no single origin and derives through
all these channels from Yiddish `feh' and/or English `fooey'.

----------------------------------------------------------------------

metasyntactic variable n. <P> A name used in examples and understood
to stand for whatever thing is under discussion, or any random member
of a class of things under discussion. The word foo is the
canonical example. To avoid confusion, hackers never (well,
hardly ever) use `foo' or other words like it as permanent names for
anything. In filenames, a common convention is that any filename
beginning with a metasyntactic-variable name is a scratch file
that may be deleted at any time.

To some extent, the list of one's preferred metasyntactic variables is
a cultural signature. They occur both in series (used for related
groups of variables or objects) and as singletons. Here are a few
common signatures:

foo, bar, baz, quux, quuux, quuuux...:
       MIT/Stanford usage, now found everywhere (thanks largely to
       early versions of this lexicon!). At MIT (but not at Stanford),
       baz dropped out of use for a while in the 1970s and '80s.
       A common recent mutation of this sequence inserts qux
       before quux.
bazola, ztesch:
       Stanford (from mid-'70s on).
foo, bar, thud, grunt:
       This series was popular at CMU. Other CMU-associated variables
       include gorp.
foo, bar, fum:
       This series is reported to be common at XEROX PARC.
fred, barney:
       See the entry for fred. These tend to be Britishisms.
corge, grault, flarp:
       Popular at Rutgers University and among GOSMACS hackers.
zxc, spqr, wombat:
       Cambridge University (England).
shme
       Berkeley, GeoWorks, Ingres. Pronounced /shme/ with a short /e/.
foo, bar, zot
       Helsinki University of Technology, Finland.
blarg, wibble
       New Zealand.
toto, titi, tata, tutu
       France.
pippo, pluto, paperino
       Italy. Pippo /pee'po/ and Paperino /pa-per-ee'-no/ are the
       Italian names for Goofy and Donald Duck.
aap, noot, mies
       The Netherlands. These are the first words a child used to
       learn to spell on a Dutch spelling board.



Of all these, only `foo' and `bar' are universal (and baz nearly
so). The compounds foobar and `foobaz' also enjoy very wide
currency.

Some jargon terms are also used as metasyntactic names; barf and
mumble, for example. See also Commonwealth Hackish for
discussion of numerous metasyntactic variables found in Great Britain
and the Commonwealth.

----------------------------------------------------------------------

Do you feel enlightened yet??

Jeff
-- 
GCS/MU 2.1 d? H- s+:++ g+ p# au-- a- w++ v-(+) C++ US++ P++>+++ L 3 E--- N++
f++ W-- M V-- +po-(---) Y t+ 5- j+ R G+ tv b++ D++ B-- e*(+) u--- h f+ r* 
n---- y*        smail://USA/48228/MI/Detroit/6531 Longacre/Jeffery L. Thomas
Jeffery L. Thomas (jlthomas@umich.edu)    http://www.umd.umich.edu/~jlthomas

--


From: robin@winternet.com (one star in sight)
Newsgroups: winternet.help
Subject: Re: Sort news file?
Date: Sun, 30 Jul 1995 04:05:34 GMT
Lines: 19
Distribution: local

mgriebel@winternet.com (Mark Griebel) wrote:

>Am looking for help concerning sorting my active news file. 
>Currently winternet.announce is #1 and winternet.gripes is #3032. I would 
>like to have them in alphabetical order. I understand their is a file in my 
>News subdirectory .something-or-other that contains all the info concerning 
>what news groups I subscribe to, can I just use the unix SORT command?
>What's the name of the file? Should I just shut-up and live with it?
>Any help would be appreciated.

I have these two commands at the end of my .login file which is in
your home directory.  The first one sorts my .newsrc file which tin
uses to store the newsgroup lists, the second line lets me know how
I'm doing on the disk space quotas.

sort -o .newsrc .newsrc
quota -v



--


From: merlyn@icicle.winternet.com (Doug McIntyre)
Newsgroups: winternet.help.unix
Subject: Re: Running a mud on shell port?
Date: 2 Aug 95 03:59:20 GMT
Lines: 27

gjerde@winternet.com (Ole Gjerde) writes:
>I'd was wondering if someone could help with this little problem.
>I'd like to get a mud running on the default shell port (23 or close?), 
>so that you don't have to add a portnumber to log into the mud.

>How do I go about doing this?  And how can I make it so I add some 
>portnumber which logs me into a shell like normal telnet normally do?

Most MUDs are already set up to be stand alone daemons, so you can go 
ahead and edit the configuration to be sitting on port 23 (yes that is
correct for telnet). BUT, inetd is already holding that port open for 
telnet for you. So, you need to edit your /etc/inetd.conf file and 
comment out the stuff for telnet and 'killall -HUP inetd' to restart
the inetd daemon. Then you can go ahead and start up your mud. 
(Its up to the individual mud as to what port you configure it to sit
on). 

You probably also want to offer telnet in service for maintance on
the machine unless you want to only use it from the console. You can
have inetd run telnet off of other ports by editing your /etc/inetd.conf
as well.. 

--
Doug McIntyre				merlyn@winternet.com

Write to info@winternet.com for more information about Winternet's
Internet services and dialups. 

--


From: Hartl Wolfgang <hartl>
Newsgroups: comp.unix.questions
Subject: Re: How do I combine find and cp?
Date: 19 Sep 1995 08:49:48 GMT
Lines: 39
Mime-Version: 1.0
To: zwazo@netcom.com

Hi!

   >I am working on a SunOS 4.1.3. At the root level, I need to find all *.lof
   >files in all subdirectories and copy (not replace) these files to *.frm in
   >their respective subdirectories.
   >
   >I have unsuccessfully tried the following command:
   >cp `find . -name *.lof -print` *.frm
   >
   >I keep getting a message about cp usage (syntax error). 

This is clear. With _find_ you get a list of files like _a.lof b.lof ..._
and you can't copy this list to an unspecific filename like *.frm.
 
   >Does anyone know how I can search for and copy files in their respective
   >directories?

I wrote a little shell script which does what you expect.
Maybe some one find a more elegant solution but it works.

--------------------------------------------------------
#!/bin/sh

for FILE in `find . -name "*.lof" -print`
do
	# you have to rename each file you have found
	NEWFILE=`echo $FILE | sed 's/lof$/frm/g'`
	cp $FILE $NEWFILE
	echo copied $FILE to $NEWFILE
done
--------------------------------------------------------

   >Any help will be appreciated.

I hope I could help.

Bye,
	Wolfgang Hartl


--


From: lpeters@scratchy.hq.af.mil (Les Peters)
Newsgroups: comp.unix.admin
Subject: Re: Q's for prospective Unix administrator
Date: 26 Sep 1995 12:12:31 GMT
Lines: 45
Reply-To: lpeters@scratchy.hq.af.mil

I did not catch the beginning of this thread, but I thought I could
contribute something to it.  The following are 15 questions that I 
was actually asked during a technical interview, given by a person 
who may or may not have known what he was asking: he may have had 
the answers that were expected/most correct...I gave him multiple 
answers for those questions that differed from Unix to Unix.

BTW, I aced it.
-----
1. What is the name of the program used to make a filesystem?

2. What is the name of the program used to fix a filesystem?

3. What permissions does the command 'chmod 544 filename' establish?

4. What is the name of the program executed to use the Korn Shell?

5. Describe the contents of the /etc/hosts file.

6. What is the format of the /etc/passwd file?

7. What is the cron facility used for?

8. Does the inode of a file contain the file's name?

9. What program is used to set terminal preferences such as how the delete
key acts?

10. What command establishes the permissions for newly-created files?

11. What file contains the listing of all mounted filesystems?

12. Describe how use of the sticky bit saves system resources.

13. What facility is used to manage how much file space a user can allocate?

14. Can a hard link be created between two filesystems?

15. How does the system know that a file is to be executed with the Bourne
Shell?
-- 
"Voom? Mate, this parrot wouldn't voom if you put 4 million volts through it!"
Les Peters (lpeters@scratchy.hq.af.mil/lpeters@aol.net/FiddyRing@aol.com)
(GC3) GCS d s+:+ a28 C++>++++ UBAHI++++$ P+++ L- E--- W+++ N+ K- w +O- M V- PS+
PE++ Y+ PGP t++(+++) 5 X+ R* tv+ b+ DI++>++++ D---- G e+>++ h---- r+++ y++++(*)

--


From: merlyn@icicle.winternet.com (Doug McIntyre)
Newsgroups: winternet.help.unix
Subject: Re: ps on more then one machine
Date: 18 Nov 95 19:07:35 GMT
Lines: 37

static@winternet.com (static) writes:
>Is their a way I can do a 'ps -gu' on all the user machines?  So that I
>can see if I have any running processes on klondike while connected to
>parka without connecting to klondike, etc...

The only way to do it would be to execute rsh on another system. This 
requires you to setup your .rhosts file. You should NOT put ANY wildcards
into your .rhosts file, as that is a security risk. It would look something
like this..

icicle.winternet.com static
parka.winternet.com static
klondike.winternet.com static
subzero.winternet.com static

Ie. hostname of safe host, and username on that host. It goes into your main
home directory. 

Then the format of the rsh command is 

rsh machinename command-to-execute command-params

For what you want to do its 

rsh parka ps -gu
rsh klondike ps -gu
rsh subzero ps -gu

which will give you all the output of those commands executed on parka,
klondike, and subzero. It does take a little bit longer to execute a
command over the net.. 

--
Doug McIntyre				merlyn@winternet.com

Write to info@winternet.com for more information about Winternet's
Internet services and dialups. 

--

From sikpuppy@maestro.comTue Mar  5 02:39:14 1996
Date: Thu, 8 Feb 1996 10:52:36 -0500 (EST)
From: Sick Puppy <sikpuppy@maestro.com>
To: firewalls@GreatCircle.COM
Subject: Unix hack


Hukd on Fonix  asked:

what I am looking to do is execute code from from a pipe in the csh.
I want to be able to take an encrypted script, decrypt it to a pipe and
have the csh interpret that stream without creating an intermediate
file. I think that unix will create /tmp files for buffering the stream,
but I don't care about that.

Well, SP passed it on to Garabisje Dawg, and HE sez:

     // Begin x.c
     #include <stdio.h>
     main()
     {       char ch; 
             while( (ch=getc(stdin) ) != EOF ) 
                    putc( ch ^ 11, stdout );  
     }
     // End x.c
     
     
     file called: y.enc
     ----------- cut here ------
     B6)jf)J6)Ebhn)+nhcd+)B+/B+j+/J+L~rWeNb}beoWe)
     ----------- end y.enc -----
     
     N.B. There is no EOF in y.enc
     
     How to do it on a UNIX box:
     
     make x
     cat y.enc | x | ksh -
                                        Garabisje Dawg

    ---------------------------------------------------------------
    When you run it, you will get the name of the mask behind the mask.

    Regret no further requests for hacks can be honored as staff and
    financial resources have not been not been bugeted by the Church for
    this purpose and I don't want to get kicked of this list like I got 
    kicked off the others.
                                 Sick Puppy, the Cat_Eating_Dawg
                                   the Church of the Dead Meow




From: guy@winternet.com (Guy T. Rice)
Newsgroups: winternet.help.unix
Subject: Re: Variable Name?
Date: Sat, 28 Oct 1995 03:42:22 -0500
Lines: 26

In article <46bkv6$fl5@blackice.winternet.com>, siradrw@winternet.com
(-<<< Sir Andrew >>>-) wrote:

|I wanted to know what the name of the variable is for
|
|Login name: siradrw                     In real life: -<<< Sir Andrew >>>-
|                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|                                                |
|                                                this field
|
|that shows up in everyone's finger information. I know that the first one 
|(the 'Login name:') is the $USER variable, but I do not know what this 
|other one is.

[~] klondike % temp=(`finger $USER | head -1`)
[~] klondike % echo $temp[7,99]
Guy T. Rice
[~] klondike %

Crude, but it works... :)

--       Guy T. Rice       --  "Walls of a castle are made out of stone,
--   <guy@winternet.com>   --   Walls of a house out of bricks or of wood.
--                         --   My walls are made out of magic alone,
-- Just my opinion; finger --   Stronger than any that ever have stood."
-- for standard disclaimer --     Chrysoberyl Earthsdaughter, Incantations

--


From: dalem@arh.com (Dale Mensch)
Newsgroups: winternet.help.unix
Subject: Re: Was wondering...
Date: 22 Feb 1996 07:43:46 -0600
Lines: 37
	<4gglv9$l8@blackice.winternet.com>
In-reply-to: drow@winternet.com's message of 22 Feb 1996 02:55:37 GMT

Aliens and the CIA made Aaron C. Paulley (paulley@winternet.com) write:
> Is there a UNIX way to easily append a file to a set of files (i.e., a
> disclaimer to the bottom of a bunch of .html files)?

 drow> bonus clue:  make a backup tar of everything before making scripted
 drow> changes.  not much sucks worse than trashing all your files by
 drow> mistake.  :)

It can suck even less: whenever I change files that I rely on, I use
sort of version control to let me incrementally back out any changes
I've made.  I'd stick in some RCS CheckOut and CheckIn commands before
and after the editting:

#!/bin/sh
#  written off the top of my head, usual disclaimers apply.

for file in file? ; do
    co -l $file
    ( while read line; do
	if [ "$line" = "</body>" ]; then
	    cat disclaimer.txt >> $file.new
	fi
	echo "$line" >> $file.new
    done ) < $file
    mv $file.new $file
    ci $file <<EEOOFF
Inserted weasly CYA verbage
to dodge CDA
EEOOFF
done
-- 
---
Dale Mensch -- contracting with Euler Solutions at Automated Wagering
dale::opinion && (euler::opinion || AWI::opinion) == NULL
  GCS d- s+:+ a+ C++ U++$ P+++$ L+++ E++ W+ N++ !K w+ !O !M !V PS+ PE-
  Y PGP- t+ 5 X+ !R tv-- b++ DI++++ D++ G e++ h---- r+++ y++++
Mpls, MN -- dalem@arh.com (w), dmensch@maroon.tc.umn.edu (h)

--


From: bmiller@convex.com (Bruce Miller)
Newsgroups: alt.unix.wizards
Subject: Re: Putting the date into a script variable
Date: 28 Feb 1996 16:33:06 GMT
Lines: 20

Alan 'Lex' Sayle (sayle@iuecalc.iue.it) wrote:

: Does anyvbody know how I can put the date (date +%D.%H%M) into a
: variable in a script, with the correct formatting (%D.%H%M).

: Thanks  Alan.

Here is something I use in my .cshrc to set my prompt to today's date:

set prompt = "$PWD`date +\ \[%a\ %m-%d-%y\]` [\!] "

As you can see, metacharacters are escaped. Actually the prompt produced looks
like this:

/mnt/bmiller [Wed 02-28-96] [220]

current dir, date, current history event number.


Bruce Miller

--


From: dojo@bnr.ca (Don Gauthier)
Newsgroups: comp.unix.misc,comp.unix.questions
Subject: Q: How to use $vars with the "ed" Editor?
Date: 28 Feb 1996 19:12:37 GMT
Lines: 34


**************************************
**************************************

ed submit_spectra_test >&/dev/null <<'END_OF_FILE'
/bld_nras
g?bld_nras[0-9]?s??$BLD_NRAS_VAR?g
w
q
'END_OF_FILE'

**************************************
**************************************

 ex ../config/spectra.tools  <<! >/dev/null
set magic
set noic
s/bld_nras[0-9]/$BLD_NRAS_VAR/g
w
q
!
       
**************************************
**************************************

The above sections don't work for me. Does anyone out there have any
solutions on the substitute expansion of the $BLD_NRAS_VAR within the ed 
"here" doc/script OR the ex "here" doc/script?


Thx,

e-mail replies to dojo@bnr.ca


--


From: bpowell@Sun.COM (Brad Powell)
Newsgroups: comp.security.unix
Subject: Re: Fingering command-Need help
Date: 28 Feb 1996 17:37:27 GMT
Lines: 81
Reply-To: bpowell@Sun.COM

In article <4h1kij$6di@hp01.redwood.nl>, rob@redwood.nl (Rob J. Nauta) writes:
:daemon9@netcom.com (Route) writes:
:
:>Ilya (ibelooze@runet.edu):
:
:: | I don't think the finger daemon is a security problem and I have not heard
:: | that it ever caused any problems.
:
:>	
:>	Are you high?  Finger is one of the greatest tools in an attacker's
:>	arsenal.  Most vanilla daemons give out ample amounts of target of 
:>	information.  Last logon, unread mail, tty location, optional fields
:>	for fullname, number and misc. information.  Sites that run a 
:>	standard fingerd do the system cracking community a favor. 
:
:No, finger is a very valuable service. Real attackers wouldn't just telnet
:to your login: prompt and try to type first names as passwords there.

finger gives out information. Weather that information is valuable to
an attacker is the question.
With the spoffing of .plan and .project files finger can be a problem.
e.g. if I can write to your .plan file and pipe through a shell,
I could have you send me the password file anytime I fingered the account.

The in.fingerd has also been on of the more commonly trojaned services.

I agree in a well maintained enviornment finger is fine and useful,
but there is potential for abuse.

:That's a myth. In fact one can recognise bad security by the fact that a
:clueless sysadmin disabled finger as a knee-jerk reaction to reading a book
:on UNIX security for the first time.

hmm, I'd say thats a little too strong a statement. There are good reasons
to disable it as well as good reasons to allow it.

: Good passwords are much more useful
:than crippling your machine. 

One time passwords are better still :-)


:An attacker can get full name from sendmail
:(with EXPN and VRFY)

with the new sendmail(s) there is a privacy option to disable this
(in the book)
something like adding one of the following to sendmail.cf (version dependant)

Opgoaway
O PrivacyOptions=noexpn, novrfy, authwarnings



:while tty location is useless nowadays, no terminals
:are hardwired, everything is a pty (pseudo-tty).
:
:>       I won't
:>	even mention the Worm.
:
:The worm used a hole that was present and plugged in 1988. It is totally
:irrelevant now.

funny, in doing broad analysis of clients internal networks I still
find (rarely albeit) machines that respond to "wiz" and "debug".
It may be 99% irrelevant (read;dead hole) but like most things in
security there is no black and white. Some sendmails still have the
options in the source code. All it takes is some user recompiling
sendmail (or a cracker putting in a back-door) to make this "live"
again.

=======================================================================
Brad Powell : brad.powell@Sun.COM 
Sr. Network Security Consultant
Sun Microsystems Inc. 
=======================================================================
               The views expressed are those of the author and may
                  not reflect the views of Sun Microsystems Inc.
=======================================================================



--

Yahoo : Winternet : TC Guide  : Files of Local Interest Enter Sysinfo.com :





From: "Paul-Marc Marot" <Paul-Marc.Marot@capway.com>
Newsgroups: comp.unix.questions
Subject: Re: *** HELP *** tar problem
Date: Tue, 2 Mar 1999 17:05:02 -0000
Lines: 64
:55 GMT)

Try : tar cvf abc.tar `cat path.txt`

Paul-Marc
----------------------------------------------------
"When you have to kill a man, it costs nothing to be polite"

-- Winston Churchill, On formal declaration of war


<f0503081@rocketmail.com> a =E9crit dans le message :
36df6dab.4212351@news.seed.net.tw...
>On Thu, 25 Feb 1999 16:48:18 GMT, bill@bilver.magicnet.netREMOVETHIS
>(Bill Vermillion) wrote:
>
>>In article <36d55e28.667205@news.seed.net.tw>,  <hottpe@hotmail.com>
wrote:
>>>
>>>I have to tar files in the following way,
>>>
>>>  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>>  tar cvf abc.tar ../dir1/file1
>>>  tar rvfn abc.tar ../dir1/file2
>>>  tar rvfn abc.tar ../dir2/file3
>>>  tar rvfn abc.tar ../dir1/file4
>>>  tar rvfn abc.tar ../dir2/file5
>>>  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>>
>  SCO 5.0.4 sometimes fails to complete the archive;
>  And it displays the following msg,
>
>  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>  a  ../dir1/file1 208 tape block2
>  tar: buffer size =3D 10K
>  seek =3D 105K    a ../dir1/file2 196K
>   tar: buffer size =3D 10K
>  seek =3D 301K    a ../dir1/file3 86K
>  tar: buffer size =3D 10K
>  seek =3D 388K    a ../dir1/file4 384K
>  tar: buffer size =3D 10K
>  seek =3D 772K    a ../dir1/file5 14K
>  tar: buffer size =3D 10K
>  tar: directory checksum error
>  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>  Could anyone help me solve the problem?
>
>What I am doing is to tar files according to a text file whose content
>is a list of the pathname of  files to archive into a tar-format file.
>The layout of the text file 'path.txt'  is,
>../dir1/file1
>../dir2/file2
>../dir3/file3
>../dir4/file4
>./dir5/file5
>
>I wrote a C program to read the text file 'path.txt' and put the
>target file into the tar archive one bye one;  This approach is
>working fine in SCO UNIX 3.2, however it seem to have difficulty in
>SCO UNIX 5.0.4.  By the way, I am NOT using tar to archive into tape.
>
>Maybe there other ways to meet my needs, could any one advice!
>
>    George 1999/03/02



--=20


From: juergen@monocerus.demon.co.uk (Juergen Heinzl)
Newsgroups: comp.unix.questions
Subject: Re: Newbie question - re: cut
Date: Sun, 14 Mar 1999 00:32:56 GMT
.co.uk:212.229.5.80
Mime-Version: 1.0
User-Agent: slrn/0.9.5.4 (UNIX)
Lines: 29

In article <36EAF6FA.F7E0262@intranet.ca>, Carlos Featherston wrote:
>I am presently taking an introductory course on UNIX at the local
>college and I am stumped with a small part of the current  assignment. I
>have been asked to separate and extract fields in a file using "cut"
>(much like in the manner explained in many texts that I have seen) and
>change the field delimiter in the process from : to a blank space. I use
>the following command to carry out this task:
>
>cut -f "1 6 7" -d : /etc/passwd
>
>Unless I do not understand the output properly, I can still see :
[...]
>cut -d" " -f1,6,7 /etc/passwd
>
>What am I doing wrong? Please help with this surely trivial impasse.
[...]
That is okay, ":" is, well, your delimiter and to replace it you have to
use another command like in ...
cut -d: -f1,6,7 /etc/passwd | tr ":" " "
... or ...
cut -d: -f1,6,7 /etc/passwd | sed -e 's/:/ /g'=20

Cheers,
Juergen

--=20
\ Real name     : J=FCrgen Heinzl                 \       no flames      =
/
 \ EMail Private : juergen@monocerus.demon.co.uk \ send money instead /
  \ Phone Private : +44 181-332 0750              \                  /

--=20


From: ken@halcyon.com (Ken Pizzini)
Newsgroups: comp.unix.questions
Subject: Re: sort file delimiter question
Date: 15 Mar 1999 17:24:43 GMT
Lines: 24
Reply-To: ken@halcyon.com
User-Agent: slrn/0.9.5.3 (UNIX)

On Sun, 14 Mar 1999 13:54:04 -0600,
phil gavenda <phil.gavenda@mail.utexas.edu> wrote:
> How do I sort a file that is tab-delimited?
>All the docs I've seen give examples with a comma or colon delimited
>file, but mine is tab-delimited.
>Something like:
>sort -frbt +1 test.dat
>but what goes after the 't'?

A tab.  But you have to quote it so that the shell doesn't
simply eat it, for example:
 sort -frbt'	' +1 test.dat

Between the two quote marks ('s) is a single tab character.
If you're doing this in an interactive shell, and depending
on exactly what shell you are using, you might also have to
type a Control-V character before the tab character.

(N.B.: I actually would have escaped the tab with a \, but that
is too visually ambiguous for a Usenet posting:
 sort -frbt\	 +1 test.dat
That's a backslash, tab, space between the "t" and the "+".)

		--Ken Pizzini

-- 


From: demas@sunspot.tiac.net (Charles Demas)
Newsgroups: comp.unix.questions
Subject: Re: sort file delimiter question
Date: 15 Mar 1999 18:09:32 GMT
Lines: 40

In article <slrn7eqg8f.l3h.ken@pulsar.halcyon.com>,
Ken Pizzini <ken@halcyon.com> wrote:
>On Sun, 14 Mar 1999 13:54:04 -0600,
>phil gavenda <phil.gavenda@mail.utexas.edu> wrote:
>> How do I sort a file that is tab-delimited?
>>All the docs I've seen give examples with a comma or colon delimited
>>file, but mine is tab-delimited.
>>Something like:
>>sort -frbt +1 test.dat
>>but what goes after the 't'?
>
>A tab.  But you have to quote it so that the shell doesn't
>simply eat it, for example:
> sort -frbt'	' +1 test.dat
>
>Between the two quote marks ('s) is a single tab character.
>If you're doing this in an interactive shell, and depending
>on exactly what shell you are using, you might also have to
>type a Control-V character before the tab character.
>
>(N.B.: I actually would have escaped the tab with a \, but that
>is too visually ambiguous for a Usenet posting:
> sort -frbt\	 +1 test.dat
>That's a backslash, tab, space between the "t" and the "+".)

It might be noted that the default field separator character(s) is
whitespace (tabs or spaces or a combination of both), but if your
delimiter is tabs (because of embedded whitespace in what you call
your fields), Ken's approach is proper rather than not using the 
-t option.


Chuck Demas
Needham, Mass.

--
  Eat Healthy    |   _ _   | Nothing would be done at all,
  Stay Fit       |   @ @   | If a man waited to do it so well,
  Die Anyway     |    v    | That no one could find fault with it.
  demas@tiac.net |  \___/  | http://www.tiac.net/users/demas

-- 


From: nospam@xyz.com. (Ross O Brien)
Newsgroups: comp.unix.questions
Subject: Re: How to break a big file
Date: Mon, 15 Mar 1999 16:31:48 GMT
Lines: 30
Reply-To: nospam@asd.com

On Mon, 15 Mar 1999 15:44:08 +0100, Arcadio
<arpando1@madrid.ecid.cig.mot.com> wrote:
>    Hi!
>
>    My problem is the next one, I want to send a big file by e-mail ( 10
>Mbytes aprox.), so I suppose that with a utility like tar, per example,
>I can break this file into a few little files. When I have done it, I
>will send these files by mail and in at the destination I will make the
>inverse process.
>
>    How can I broke this big file ?

To split the file into chunks that will fit on a floppy do the
following:

"split -b 1400000 <filename>" 

split files will be called xa, xb, xc, etc.
to create smaller chunks, just change 1400000 to what ever you want

To join them back together

 "cat x* > original_filename "


Ross O'Brien
------------
"Your computer is broken and _I_ have the problem!!"
http://www.airtel-atn.com
------------

-- 


From: ken@halcyon.com (Ken Pizzini)
Newsgroups: comp.unix.questions
Subject: Re: Line splitting long lines
Date: 31 Mar 1999 18:10:55 GMT
Lines: 29
Reply-To: ken@halcyon.com
User-Agent: slrn/0.9.5.3 (UNIX)

On Wed, 31 Mar 1999 16:49:05 GMT, <fma@doe.carleton.ca> wrote:
>Does anyone know of a filter or sed-script that will truncate
>long lines (greater than 80 characters) so that text becomes
>more coherent when printed out on 80-column printouts?

fold

>  I'm
>talking about normal text (english words, sentences) which can
>be split at the last white space before the 81st column.

fold -s


>  It
>would also be nice if the filter could combine the resulting
>orphan lines with the next line so that the text doesn't look
>mutiliated.

fmt or par

>  Finally, a real bonus would be if the filter was
>smart enough to preserve indentations on indented paragraphs.

fmt or par
(Each has mechanisms to override default behavior, in case
its default heuristics are wrong.)

		--Ken Pizzini

-- 


From: "Eric G." <gravelle@foursixteen.com>
Newsgroups: alt.unix.wizards
Subject: Re: Removing control M's from files > ^M <
Date: Mon, 19 Apr 1999 15:01:03 -0400
Lines: 21
Mime-Version: 1.0

Using tr, here's another method to remove those beutiful ^M from dos
files...

tr -d "\015" < filename1 > filename2

Enjoy!

Bob Withers wrote:
> 
> In article <PEhfUAArnGC3Ew0K@admit.com>, administrator@admit.com says...
> > Try
> >
> >         man dos2ux
> 
> For a more general solution to this try my cvt utility.  It does the
> conversion using wildcards and will recurse down a directory tree.  You
> can pick it up, source included, at
> http://www.ticnet.com/bwit/download.htm.
> 
> Regards,
> Bob

-- 


From: jimbo@bolt.sonic.net (Jim Bianchi)
Newsgroups: alt.os.linux.slackware
Date: 22 Mar 1999 19:31:37 GMT
Lines: 59
Reply-To: jimbo@sonic.net

In article <7d5ncd$8pd$1@hfc.hk.super.net>, Nicky Ng wrote:
>I tried to install x-windows but the mouse pointer usually auto return at
>the top left corner of the screen.
>
>My mouse is Microsoft IntelliMouse (PS/2 port)
>I have chose Microsoft IntelliMouse from the Mouse option when installing
>Slackware and the x-windows.
>Could you tell me what I should do to solve this problem?

	Geberally speaking, and assuming your mouse is actually working, is
hooked up properly, and you've the correct protocol selected for it, there
are three ways to get the mouse to actually work in X:

	1) You can kill gpm with (as root) gpm -k (or killall gpm), then
start your X session as normal. For many reasons, this is not an optimal
solution;

	or 2) you can edit the file /etc/rc.d/rc.local (from which gpm is
started), remove the -R flag, reboot, and restart your X session (this is
what I've done);

	or 3) if there is an -R flag present in the gpm cmd line, you can
leave it and edit the file /etc/XF86Config, paying attn to the section
dealing with the Pointer device, as shown below:

[segment of my /etc/XF86Config]
# **********************************************************************
# Pointer section
# **********************************************************************

Section "Pointer"
    Protocol    "Microsoft"
    Device      "/dev/mouse"


	See the line dealing with 'Device?' Change that from /dev/mouse to
/dev/gpmdata, save and restart X. (This is actually the preferred method,
although #2 works as well.) 

	What's happening is gpm (which is more of a daemon than not)
intercepts all mouse movement events and sends them to the file /dev/mouse,
EXCEPT when the -R flag is present, when it sends them to /dev/gpmdata. The
X config file (/etc/XF86Config) tells X to look for mouse movement events in
/dev/mouse -- but they are being put in /dev/gpmdata and since the X server
doesn't know to look there, well.. It makes no difference what kind of
pointer device you have -- serial, bus, ps/2, or whatever.

	From man gpm:

       -R     Causes gpm to act as a  repeater:  any  mouse  data
              received  while in graphic mode will be produced on
              the fifo  /dev/gpmdata ... .

	HTH.


-- 
jimbo@sonic.net 
Eclectic Garbanzo BBS, (707) 539-1279

-- 


From: Barry Margolin <barmar@bbnplanet.com>
Newsgroups: comp.unix.questions
Subject: Re: diff question
Originator: barmar@bbnplanet.com (Barry Margolin)
Lines: 22
Distribution: world
Date: Thu, 22 Apr 1999 16:40:43 GMT

In article <371F3FED.9672C582@snet.net>,
Robert Garskof  <rgarskof@snet.net> wrote:
>If I have two text files (A and B), how do I get a listing of all
>records that are the same between the two files? I would love to see
>something like;
>
>%> same A B > out
>
>Where out would contain all lines that were in both A and B.
>
>In other words, what is the exact opposite of diff? Sure I could write
>something, but is there a tool already for that?

If they're sorted, you can use comm(1) for this:

comm -12 A B > out

-- 
Barry Margolin, barmar@bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

-- 


From: Martin Hepworth <maxsec@usa.net>
Newsgroups: comp.unix.admin
Subject: Re: FTP directories
Date: Thu, 22 Apr 1999 16:28:47 +0100
Lines: 21



Richard Kwasniewski wrote:
> 
> Is there a way to have web clients ONLY see their ftp directories when
> they do a ftp session? Most of them have no idea what to do or how to do
> it, but I'd rather not let them roam around the system.?
> 
> Running linux/redhat
> 
> richard
> richard@gravesource.com
Hi
yup its called chroot.

edit the homedir in the passwd file to be /export/home/./username

Have a look at proftpd and wu-ftpd to - they do the job better than the
default ftpd.

Martin

-- 


Newsgroups: alt.unix.wizards
From: "Scott G. Hall" <Scott.Hall@GSC.GTE.Com>
Subject: Re: echoing bold?
To: Diamon <miller-lee@usa.net>, Paul <pberb@hotmail.com>
Mime-Version: 1.0
Date: Fri, 23 Apr 1999 17:45:24 GMT
Lines: 74

Diamon wrote:
> Paul <pberb@hotmail.com> wrote:
> > Bolding my prompt is actually what I want to do.
> > But `tput smso` seems to highlight my prompt.
> > What is the command to bold it?
> 
> tput bold
> 
> However it is up to your terminal emulator to correctly interpret it, most
> only highlight.

As I said in my previous response, "tput bold" will output the bold
sequence defined for your terminal in your terminfo description, or if none
is defined it will output the standout sequence.

defined for bold, reverse ("tput rev") and underline ("tput smul"), but has
standout defined the same as reverse.

Historically this makes sense:  Since almost all terminals offer a reverse
video character attribute, but few in the 1970s and early 1980s offered
boldface for underline, the standout capability in termcap was set to the
sequence for reverse.  As terminals allowed other attibutes and colors,
termcap and later terminfo stored separate capabilities for reverse, bold,
dim, underline, blink and italics.  However standout was almost always
defined the same as reverse, since that made man pages displayed with
"more" look the same on all terminals.  This is also why you are encouraged
to use only normal and standout in your curses programs -- so it will the
same regardless of the terminal.

Please note: terminfo defines separate exit codes for: standout, underline,
italics and blink; but reverse, bold and dim are all ended by the
end-standout sequence.

Your best bet is to look in the man page for terminfo(4).  Each terminfo
capability is available as an argument to the tput command for use in
shell scripts.

Also note:  I almost always define the following in my .profile:

	BOLD=`tput bold`
	REV=`tput rev`
	NORMAL=`tput rmso`
	UNDERLN=`tput smul`
	ENDUNDER=`tput rmsl`
	BELL="\a"	# ksh or bash; for sh use: BELL="\07"
	ESC="\033"
	NL="\n"		# ksh or bash; for sh use: NL="\012"
	DQUOTE='"'
	QUOTE="'"
	export BOLD REV NORMAL UNDERLN ENDUNDER BELL ESC NL DQUOTE QUOTE

or in my .login:

	setenv BOLD `tput bold`
	setenv REV `tput rev`
	setenv NORMAL `tput rmso`
	setenv UNDERLN `tput smul`
	setenv ENDUNDER `tput rmsl`
	setenv BELL "\07"
	setenv ESC "\033"
	setenv NL "
	"
	setenv DQUOTE '"'
	setenv QUOTE "'"

write after the TERM variable gets resolved.  I can use these in my shell
scripts easily by just referencing the variables.

-- 
Scott G. Hall
GTE Government Systems
North Carolina Systems Center
email: Scott.Hall@GSC.GTE.Com

-- 


news.winternet.com!news.minn.net!newspump.monmouth.com!newspeer.monmouth.com!howland.erols.net!newsfeed.berkeley.edu!news-out.uswest.net!news.uswest.net!not-for-mail
From: "J. S. Jensen" <jsjensen@Paramin.COM>
Newsgroups: comp.unix.misc,alt.unix.wizards
Subject: Re: Can I direct UNIX STDOUT directly into specific port on a
different 
 machine without using any tool or script
Lines: 18
Date: Wed, 28 Apr 1999 10:58:15 -0600
11:57:53 CDT)

Ron wrote:

> Can I direct UNIX STDOUT directly into specific port on a different
> machine without using and tool

¿w/o a tool?  Do you mean ``..any tool?''  Quick answer.  Not in a way
that I know.  Use `hose.'

cmd foo |hose hostname port -slave

http://www.purplefrog.com/~thoth/

--
J. S. Jensen
mailto:jsjensen@Paramin.COM
http://www.Paramin.COM



-- 


news.winternet.com!news.minn.net!chippy.visi.com!news-out.visi.com!feed1.news.rcn.net!rcn!newsfeed.cwix.com!207.110.0.61!news.connectnet.com!mdkail
From: mdkail@connectnet.com (Mike D. Kail)
Newsgroups: comp.security.unix
Subject: Re: Turning off iP forwarding?
Reply-To: mdkail@connectnet.com
User-Agent: slrn/0.9.5.4 (UNIX)
Lines: 11
Date: Wed, 28 Apr 1999 19:17:32 GMT
12:17:32 PDT)

On Wed, 28 Apr 1999 19:07:58 GMT, Grand Poobah of PRAM 
<mbusse@midway.uchicago.edu> wrote:
>
>can anyone point me to documentation telling how to do this on Solaris
>2.6?  9or tell me how to do it...)

ndd -set /dev/ip ip_forwarding 0

-- 
Mike D. Kail
mdkail@connectnet.com

-- 


news.winternet.com!news.minn.net!nntp1.chi.cifnet.com!newsfeed.enteract.com!feed1.news.rcn.net!rcn!news2.best.com!news3.best.com!nntp1.ba.best.com!not-for-mail
From: doosh@best.com (Tom Holub)
Newsgroups: comp.security.unix,comp.unix.questions,comp.unix.solaris
Subject: Re: Help: Backup up tapes via ssh/ssh2
Date: 28 Apr 1999 09:02:13 -0700
Lines: 18
comp.unix.questions:93926 comp.unix.solaris:200166

In article <7g770b$6cp$1@nnrp1.dejanews.com>,
 <unixhelpplease@my-dejanews.com> wrote:
)Here's the deal. I have a Solaris Box with a tape drive and an OSF/1
box and a
)SGI box that need to be backed up nightly onto that tape.
)
)I can't figure out how to do backup from the other two boxes to the
solaris
)box.  The catch is that .rlogin is disabled--it all has to be .ssh or,
)preferably, .ssh2.  I created a "tapemeister" account on each of the
three
)machines and set up their keys such that they can log in to each other
without
)passwords. 

One way to do it is, on the SGI and OSF boxes, run the equivalent of:

dump 0uf - | ssh tapehost dd of=/dev/rmt/0un

That is, dump to standard output, and pipe it through ssh, using dd
to write to the tape.
 -Tom

-- 


From: Alex Mansurov <alex@person3.math.dcn-asu.ru>
Newsgroups: comp.unix.admin
Subject: Re: How to copy large file to floppy (span disks on Sparc2 box)
Date: Mon, 03 May 1999 00:07:31 +0700
Mime-Version: 1.0
Lines: 18

Ted Assur wrote:
> 
> I have a 2 meg file that I need transfered to floppy disk on a stand alone
> sparc2. Obviously I can't fit it onto one floppy,
> 
> How do I have it copy  1 file across more than 1 disk?
> 
   You can try something like this:

tar -c -b2880 -M -v -f /dev/fd0 your_large_file

of course, you should have GNU tar.  

-- 
                                          Sincerely yours,
ICQ : 15508361                                     Alex Mansurov.
Fido: 2:5002/45.50
mailto:alex@dg.alien.ru // alex@person3.math.dcn-asu.ru

-- 

Yahoo : Winternet : TC Guide  : Files of Local Interest Enter Sysinfo.com :



Hosted by: Enter:  sysinfo.com


©copyright 1995-2002 sysinfo.com