10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am working on an Urdu to Hindi dictionary and I have created the following file structure:
Headword=Gloss1,Gloss2,Gloss3
i.e. glosses delimited by a comma.
It so happens that in some cases (around 6000+ in a file of over 200,000+ the glosses are duplicated.
Since this may be a... (3 Replies)
Discussion started by: gimley
3 Replies
2. Linux
Hi All,
I am booting by Linux box with the run level 3 and it gets booted successfully.
I want to execute a script once the system is up and running in the run level 3. I was trying to add a entry to /etc/inittab to execute my script once the system is up.
I have added the below... (5 Replies)
Discussion started by: kalpeer
5 Replies
3. Shell Programming and Scripting
Hi
Im trying to scan a file for certain entries and remove their corresponding lines completely. What I have now is this,
for USER in user1 user2 user3 user4
do
sed '/$USER/d' /etc/sudoers
done
However this doesn't remove the entries at all. Is there another way for this?
Thanks... (2 Replies)
Discussion started by: bludhemn
2 Replies
4. Shell Programming and Scripting
Hi,
I need to delete duplicate records in a file that is around 30MB. Below is what I need. Below are the entries of input file and the output file that I need. Each section of input file is separated by an empty line. Some of these sections have duplicate uid values. I want to retain only one... (4 Replies)
Discussion started by: Samingla
4 Replies
5. Shell Programming and Scripting
Hello everyone,
I want to compare the first line of a file(ABC) with that of a folder,XYZ(folder contents) and want that line to be deleted from the file(ABC) if that entry doesn't exist in the folder(XYZ)
I want to put this in a loop. please can anyone help
thanks (6 Replies)
Discussion started by: swasid
6 Replies
6. Solaris
Hi,
I have a solaris 10 server,which has a process running that communicates with other system.I have made following entry in the inittab file.
PM15:s12345:respawn:/ncm/bin/communicator
PM15 : Unique process ID
s12345 : run levels
respawn : if anytime the process... (2 Replies)
Discussion started by: asalman.qazi
2 Replies
7. HP-UX
Hi relatively new to unix so sorry if this is a stupid question:
How do i add a printer entry into the host file.
I know how to add the printer using sam, but i am required to add the host file entry into /etc/hosts which i am unaware of how to do.
Any help would be greatly appreciated. (2 Replies)
Discussion started by: Wade Gava
2 Replies
8. Shell Programming and Scripting
I have written this small script to add an entry to a remote /etc/hosts file which needs to be run from our central admin box and is passed one parameter $1 <hostname>
#!/bin/ksh
echo "Which host entry would you like to add to $1"
read host_to_add
echo "what is the IP address?"
read ip
... (4 Replies)
Discussion started by: hcclnoodles
4 Replies
9. Shell Programming and Scripting
Hi falks,
I have the following ksh function ,which adding entry to crontab during ksh program running:
{
print "Go\c" >/dev/null 2>&1
print '0 0 * * * su - ias -c "/home/orca/core-${SCHEMA_NAME}/CLI/cleanup_BRMS.ksh"\c' >/dev/null 2>&1
print "\033:wq!" >/dev/null 2>&1
} | \crontab -e... (2 Replies)
Discussion started by: nir_s
2 Replies
10. Shell Programming and Scripting
Hi,
I am having almost the same problem as junior member 'oupsforum' (refer to subjuct "deleting double entry in a log file"), only that I am using Sun Sorlaris Unix which the uniq command does not has the flag -w. So I am not able to ignore certain portion of the line when the uniq doing the... (3 Replies)
Discussion started by: Wing m. Cheng
3 Replies