Sponsored Content
Top Forums Shell Programming and Scripting Delete duplicate directories? Post 302980412 by RudiC on Saturday 27th of August 2016 05:44:09 AM
Old 08-27-2016
That's not too specific nor precise, is it? What exactly are you after? Identical directory names/branches? Identical file names? Identical files?
This User Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Delete Duplicate Cronjobs

I set up same cronjobs in two different users to generate messages at 5:30 AM Not Its generating duplicate messages. I want to delete the cron entries set up in the first user, but I am unable to view the entries in that user. I tried to find the process Id, but its not showing any id Could... (2 Replies)
Discussion started by: nskworld
2 Replies

2. Shell Programming and Scripting

duplicate directories

Hi, I have file which users like filename ->"readfile", following entries peter john alaska abcd xyz and i have directory /var/ i want to do first cat of "readfile" line by line and first read peter in variable and also cross check with /var/ how many directories are avaialble... (8 Replies)
Discussion started by: learnbash
8 Replies

3. Shell Programming and Scripting

Remove Duplicate Filenames in 2 very large directories

Hello Gurus, O/S RHEL4 I have a requirement to compare two linux based directories for duplicate filenames and remove them. These directories are close to 2 TB each. I have tried running a: Prompt>diff -r data1/ data2/ I have tried this as well: jason@jason-desktop:~$ cat script.sh ... (7 Replies)
Discussion started by: jaysunn
7 Replies

4. UNIX for Dummies Questions & Answers

Duplicate directories

I have noticed that the same folder (and contents) lives in /u/public and /usr/public Question was this put here intentionally or by accident? Its 31Gb in size and on a 72Gb HDD that leaves little room for apps. It is a nework shared drive for all to access e.g. p: points to... (0 Replies)
Discussion started by: moondogi
0 Replies

5. UNIX for Dummies Questions & Answers

Delete duplicate second line

Hi ALL I need a help I need to retain only the first line of 035 if I have two line before =040 , if only one then need to take that Eg: Input =035 (ABC)12324141241 =035 (XYZPQR)704124 =040 AB$QS$WEWR =035 (ABC)08080880809 =035 (XYZPQR)9809314 =040 ... (4 Replies)
Discussion started by: umapearl
4 Replies

6. Shell Programming and Scripting

Create duplicate directories with same permissions

Hi all, I need to create duplicate directories and sub directories (only the directories not the files or file contents) with the same permissions. Can some one guide me in doing this. I could able to create but here the permissions should be the same how can i do this in linux. Thanks in... (5 Replies)
Discussion started by: Olivia
5 Replies

7. Shell Programming and Scripting

Delete duplicate rows

Hi, This is a followup to my earlier post him mno klm 20 76 . + . klm_mango unix_00000001; alp fdc klm 123 456 . + . klm_mango unix_0000103; her tkr klm 415 439 . + . klm_mango unix_00001043; abc tvr klm 20 76 . + . klm_mango unix_00000001; abc def klm 83 84 . + . klm_mango... (5 Replies)
Discussion started by: jacobs.smith
5 Replies

8. Programming

Finding duplicate files in two base directories

Hello All, I have got some assignment to complete till this Monday and problem statement is as follow :- Problem :- Find duplicate files (especially .c and .cpp) from two project base directories with following requirement :- 1.Should be extendable to search in multiple base... (4 Replies)
Discussion started by: anand.shah
4 Replies

9. Shell Programming and Scripting

Delete duplicate row

Hi all, how can delete duplicate files in file form, e.g. $cat file1 aaa 123 234 345 456 bbb 345 345 657 568 ccc 345 768 897 456 aaa 123 234 345 456 ddd 786 784 234 263 ccc 345 768 897 456 aaa 123 234 345 456 ccc 345 768 897 456 then i need ouput file1 some, (4 Replies)
Discussion started by: aav1307
4 Replies

10. Shell Programming and Scripting

Find duplicate values in specific column and delete all the duplicate values

Dear folks I have a map file of around 54K lines and some of the values in the second column have the same value and I want to find them and delete all of the same values. I looked over duplicate commands but my case is not to keep one of the duplicate values. I want to remove all of the same... (4 Replies)
Discussion started by: sajmar
4 Replies
proc_service(3PROC)					 Process Control Library Functions				       proc_service(3PROC)

NAME
proc_service - process service interfaces SYNOPSIS
#include <proc_service.h> ps_err_e ps_pdmodel(struct ps_prochandle *ph, int *data_model); ps_err_e ps_pglobal_lookup(struct ps_prochandle *ph, const char *object_name, const char *sym_name, psaddr_t *sym_addr); ps_err_e ps_pglobal_sym(struct ps_prochandle *ph, const char *object_name, const char *sym_name, ps_sym_t *sym); ps_err_e ps_pread(struct ps_prochandle *ph, psaddr_t addr, void *buf, size_t size); ps_err_e ps_pwrite(struct ps_prochandle *ph, psaddr_t addr, const void *buf, size_t size); ps_err_e ps_pdread(struct ps_prochandle *ph, psaddr_t addr, void *buf, size_t size); ps_err_e ps_pdwrite(struct ps_prochandle *ph, psaddr_t addr, const void *buf, size_t size); ps_err_e ps_ptread(struct ps_prochandle *ph, psaddr_t addr, void *buf, size_t size); ps_err_e ps_ptwrite(struct ps_prochandle *ph, psaddr_t addr, const void *buf, size_t size); ps_err_e ps_pstop(struct ps_prochandle *ph); ps_err_e ps_pcontinue(struct ps_prochandle *ph); ps_err_e ps_lstop(struct ps_prochandle *ph, lwpid_t lwpid); ps_err_e ps_lcontinue(struct ps_prochandle *ph, lwpid_t lwpid); ps_err_e ps_lgetregs(struct ps_prochandle *ph, lwpid_t lwpid, prgregset_t gregset); ps_err_e ps_lsetregs(struct ps_prochandle *ph, lwpid_t lwpid, const prgregset_t gregset); ps_err_e ps_lgetfpregs(struct ps_prochandle *ph, lwpid_t lwpid, prfpregset_t *fpregset); ps_err_e ps_lsetfpregs(struct ps_prochandle *ph, lwpid_t lwpid, const prfpregset_t *fpregset); ps_err_e ps_pauxv(struct ps_prochandle *ph, const auxv_t **auxp); ps_err_e ps_kill(struct ps_prochandle *ph, int sig); ps_err_e ps_lrolltoaddr(struct ps_prochandle *ph, lwpid_t lwpid, psaddr_t go_addr, psaddr_t stop_addr); void ps_plog(const char *fmt); SPARC ps_err_e ps_lgetxregsize(struct ps_prochandle *ph, lwpid_t lwpid, int *xregsize); ps_err_e ps_lgetxregs(struct ps_prochandle *ph, lwpid_t lwpid, caddr_t xregset); ps_err_e ps_lsetxregs(struct ps_prochandle *ph, lwpid_t lwpid, caddr_t xregset); x86 ps_err_e ps_lgetLDT(struct ps_prochandle *ph, lwpid_t lwpid, struct ssd *ldt); DESCRIPTION
Every program that links libthread_db or librtld_db must provide a set of process control primitives that allow libthread_db and librtld_db to access memory and registers in the target process, to start and to stop the target process, and to look up symbols in the target process. See libc_db(3LIB). For information on librtld_db, refer to the Linker and Libraries Guide. Refer to the individual reference manual pages that describe these routines for a functional specification that clients of libthread_db and librtld_db can use to implement this required interface. The <proc_service.h> header lists the C declarations of these routines. FUNCTIONS
ps_pdmodel() Returns the data model of the target process. ps_pglobal_lookup() Looks up the symbol in the symbol table of the load object in the target process and returns its address. ps_pglobal_sym() Looks up the symbol in the symbol table of the load object in the target process and returns its symbol ta- ble entry. ps_pread() Copies size bytes from the target process to the controlling process. ps_pwrite() Copies size bytes from the controlling process to the target process. ps_pdread() Identical to ps_pread(). ps_pdwrite() Identical to ps_pwrite(). ps_ptread() Identical to ps_pread(). ps_ptwrite() Identical to ps_pwrite(). ps_pstop() Stops the target process. ps_pcontinue() Resumes target process. ps_lstop() Stops a single lightweight process ( LWP ) within the target process. ps_lcontinue() Resumes a single LWP within the target process. ps_lgetregs() Gets the general registers of the LWP. ps_lsetregs() Sets the general registers of the LWP. ps_lgetfpregs() Gets the LWP`s floating point register set. ps_lsetfpregs() Sets the LWP`s floating point register set. ps_pauxv() Returns a pointer to a read-only copy of the target process's auxiliary vector. ps_kill() Sends signal to target process. ps_lrolltoaddr() Rolls the LWP out of a critical section when the process is stopped. ps_plog() Logs a message. SPARC ps_lgetxregsize() Returns the size of the architecture-dependent extra state registers. ps_lgetxregs() Gets the extra state registers of the LWP. ps_lsetxregs() Sets the extra state registers of the LWP. x86 ps_lgetLDT() Reads the local descriptor table of the LWP. ATTRIBUTES
See attributes(5) for description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
libc_db(3LIB), attributes(5) Linker and Libraries Guide SunOS 5.10 16 Jan 1998 proc_service(3PROC)
All times are GMT -4. The time now is 11:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy