01-16-2008
Quote:
Originally Posted by
kekanap
Hallo Ilan,
I tried the script you wrote for me but It is not deleting some of the files. I checked the permissions on the files and they are rw-rw-rw. Is there another way I can force a deletion?
can you post the file name which were not deleted?
-ilan
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, i got this script but when i hit reset i loose the times in the form box. Can someone please edit this script so when i hit reset i dont loose the times in the form box's and also have a button to reset everything, including the form boxs
<script language="javascript">
// stopwatch... (1 Reply)
Discussion started by: perleo
1 Replies
2. Shell Programming and Scripting
Hello,
How would i go about editing a file using VI within a shell script please?
Basically, i want to open a file, clear it's contents and save the file.
I found this on the web using "ex" but can't seem to get it to work:
ex /home/oconnor/TOOLS/UNIXCMDS/test_ex <<eof_ex
dd /*i put... (2 Replies)
Discussion started by: bobk544
2 Replies
3. Shell Programming and Scripting
hi
I have one jsp file. i want to edit this jsp page using script.
This jsp page contains ("insert into employee values('raja', 32, ' ');)
i want to add empty column at the end of the line. i.e is that line should be
(insert into employee values('raja', 32, ' ', ' ');) (2 Replies)
Discussion started by: nsundaram_cse
2 Replies
4. Shell Programming and Scripting
Hi,
sample file looks like this..
<hp>
<name>
<detail>adsg</detail>
...
...
</name><ft>4264</ft>
</hp>
I need to edit the last but one line using perl script. I want the format to be ..
<hp>
<name>
<detail>adsg</detail>
...
...
</name> (9 Replies)
Discussion started by: meghana
9 Replies
5. Shell Programming and Scripting
Hi,
CREATE TABLESPACE aps_blob_large01
DATAFILE '/c2r6u13/u03/oradata/qnoldv01/aps_blob_large0101.dbf' SIZE X 270532608
REUSE
DEFAULT STORAGE (INITIAL 134217728 NEXT... (2 Replies)
Discussion started by: rparavastu
2 Replies
6. Shell Programming and Scripting
Hi,
Can some one tell me if we can configure the jobs in crontab using a shell script.
I know it can be done easily by using "crontab -e", but i just want to know whether we can add a job into the crontab using a shell script.
If it can be done, plz suggest the procedure to do it.
If it... (6 Replies)
Discussion started by: rudrarajumk
6 Replies
7. Shell Programming and Scripting
Hello,
I have a big file in wich I would like to rename inside this exactly the string '_ME' and not rename in case we have 'ABC_MELANGE'. Is there a way to do it by using a shell script?
Any tip will be apreciated.
The file is like described bellow, after using command more filename :
... (3 Replies)
Discussion started by: Titas
3 Replies
8. UNIX for Dummies Questions & Answers
Hello every one,
I am a newbie , I am trying to run the script .sh file , but when I run this, I need this backup file to store at some location called " /A/B " ,but this location should only consist the latest backup file. which mean at any time this location only consists the latest backup... (2 Replies)
Discussion started by: karthik25
2 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am trying to automate hadoop installation procedure using shell script. It involves go to perticular directory... (3 Replies)
Discussion started by: Abdul Navaz
3 Replies
10. UNIX for Advanced & Expert Users
i wrote script for if file exists script do file edit problem with the script get stuck not existing as for exit i mentioned exit 0 , and how to give the exception for script it should add
./script -- add hi
./script --add "hi how are you"
now below script with case it is working for... (0 Replies)
Discussion started by: markjohn1
0 Replies
LEARN ABOUT HPUX
deluser.conf
deluser.conf(5) File Formats Manual deluser.conf(5)
NAME
/etc/deluser.conf - configuration file for deluser(8) and delgroup(8).
DESCRIPTION
The file /etc/deluser.conf contains defaults for the programs deluser(8) and delgroup(8). Each option takes the form option = value. Dou-
ble or single quotes are allowed around the value. Comment lines must have a hash sign (#) at the beginning of the line.
deluser(8) and delgroup(8) also read /etc/adduser.conf, see adduser.conf(5); settings in deluser.conf may overwrite settings made in
adduser.conf.
The valid configuration options are:
REMOVE_HOME
Removes the home directory and mail spool of the user to be removed. Value may be 0 (don't delete) or 1 (do delete).
REMOVE_ALL_FILES
Removes all files on the system owned by the user to be removed. If this option is activated REMOVE_HOME has no effect. Values may
be 0 or 1.
BACKUP If REMOVE_HOME or REMOVE_ALL_FILES is activated all files are backuped before they are removed. The backup file that is created
defaults to username.tar(.gz|.bz2) in the directory specified by the BACKUP_TO option. The compression method is chosen to the best
that is available. Values may be 0 or 1.
BACKUP_TO
If BACKUP is activated, BACKUP_TO specifies the directory the backup is written to. Default is the current directory.
NO_DEL_PATHS
A list of regular expressions, space separated. All files to be deleted in course of deleting home directories or deleting files
owned by the user to be deleted are checked against each of these regular expressions. If a match is detected, the file is not
deleted. Defaults to a list of system directories, leaving only /home.
In other words: By default only files below /home belonging to that specific user are going to be deleted.
ONLY_IF_EMPTY
Only delete a group if there are no users belonging to this group. Defaults to 0.
EXCLUDE_FSTYPES
A regular expression which describes all file systems which should be excluded when looking for files of a user to be deleted.
Defaults to "(proc|sysfs|usbfs|devpts|tmpfs|afs)".
FILES
/etc/deluser.conf
SEE ALSO
adduser.conf(5), delgroup(8), deluser(8)
Debian GNU/Linux Version 3.116ubuntu1 deluser.conf(5)