KSH question

From: Peter Le (Peter.t.le_at_philips.com)
Date: 09/08/03


Date: Mon, 08 Sep 2003 14:20:44 -0700

Hi,

I'm new to shell scripting. I would like to know how to
create a ksh script, that print out duplicate/same entry
in a file. or point to location where I can learn to do
it.

Ex:/etc/passwd
user1:55:user1 test1
user2:55:user2 test2
user3:60:user3 test3
user4:70:user4 test4
user5:70:user5 test5

the script will print to the output are:

user1:55:user1 test1
user2:55:user2 test2
user4:70:user4 test4
user5:70:user5 test5

Thanks,
PL



Relevant Pages

  • Re: [opensuse] Metasend
    ... What you have is a fragment of a script - this is not a complete shell script. ... You could hard code these in the script, or you could pass them as command- ... Shell scripting isn't that hard once you've played with it a few times. ...
    (SuSE)
  • Re: trouble with sh script
    ... :>>>> i am new to shell scripting. ... :>>>> then I wrote a script to make sure see if my system has changed at all. ... :>>> No command after the first exec will be run. ... its ineffecient to run the diff twice when you done't need to. ...
    (comp.unix.shell)
  • Re: BASH script looking for critique!!
    ... getting ripped apart by those more accomplished at shell scripting than ... Follwoing I detail the program logic followed by the actual script. ... Open each "filename" and parse it for a custom tagline ... write the custom tag data to a file ...
    (alt.os.linux)
  • Re: OT: Scripting humour
    ... some shell scripting. ... I created the follow script and installed it on my wife's computer to ... configged xscreensaver for BSOD. ... Do not remove Windows' ...
    (Ubuntu)
  • Re: [opensuse] Metasend
    ... Here is the script: ... What you have is a fragment of a script - this is not a complete shell script. ... with each of the email addresses of the mail list members, ... Shell scripting isn't that hard once you've played with it a few times. ...
    (SuSE)