11-11-2004
I agree,
My best way to remove odd files is with:
# rm ./filename
This ensures you wont do anything stupid like wiping out all files in the directory. I believe quotes work as well.
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I'm trying to delete some files that are causing a script to malfunction. I cannot seem to remove them even with -f. I have tried chmod and chown and they don't seem to be affected the files at all. they have weird dates listings, too. Here is their listing:
br-xr-xrwt 29561 538995051... (3 Replies)
Discussion started by: Jason Brice
3 Replies
2. UNIX for Dummies Questions & Answers
I need a unix script that check for even or odd. EXAMPLE::::
please enter the number to check: 12
the output: This is an even number
it has to have prompts. (2 Replies)
Discussion started by: snyper2k2
2 Replies
3. Shell Programming and Scripting
Hello,
I want to sort/identify 600 files according to odd or even numbers in the files names. How can I do this?
The goal is to perform different ImageMagick operations based on even or odd numbers in the file names. The file names have this pattern: bdf0001.tif, bdf0044.tif and bdf0136.tif
... (4 Replies)
Discussion started by: garganmou
4 Replies
4. UNIX for Dummies Questions & Answers
Hi guys, I wondered if someone would be able to help me.
I have a number of files which all have entries in them looking something like;
And I'm looking for a way where by I can compare a number of these files and identify the odd numbers in the sequence.
So for example if I had to... (1 Reply)
Discussion started by: JayC89
1 Replies
5. Shell Programming and Scripting
Hi,
I wrote a small program to read lines from a file and count the lines. The program is as below:
filename=$1
count=0
cat $filename | while read -r line
do
printf "%5d:%s\n" $count "$line"
count=$((count + 1))
done
echo " $count "
After I run the program, the result is... (4 Replies)
Discussion started by: jianma
4 Replies
6. Solaris
Hello,
I have a weird think going on, on one of my servers.
vi filename
"/var/tmp" No such file or directory
What going on here? (4 Replies)
Discussion started by: bitlord
4 Replies
7. Shell Programming and Scripting
Hey guys.
I have been trying to figure out an easy way to seperate a liste of 150k numbers (10 digits) in a .txt file into odd and even numbers with each of their own files, for a project at work.
I've tried Excel, but it was too much for it and it wasnt very simple. So i gave up after... (13 Replies)
Discussion started by: TranceC
13 Replies
LEARN ABOUT OPENSOLARIS
rmdel
sccs-rmdel(1) User Commands sccs-rmdel(1)
NAME
sccs-rmdel, rmdel - remove a delta from an SCCS file
SYNOPSIS
rmdel -rsid s.filename...
DESCRIPTION
The rmdel utility removes the delta specified by the SCCS delta ID (SID) supplied with -r. The delta to be removed must be the most recent
(leaf) delta in its branch. In addition, the SID must not be that of a version checked out for editing: it must not appear in any entry of
the version lock file (p.file).
If you created the delta, or, if you own the file and directory and have write permission, you can remove it with rmdel.
If a directory name is used in place of the s.filename argument, the rmdel command applies to all s.files in that directory. Unreadable
s.files produce an error; processing continues with the next file (if any). The use of `-' as the s.filename argument indicates that the
names of files are to be read from the standard input, one s.file per line.
OPTIONS
The following option is supported:
-rsid Remove the version corresponding to the indicated SID (delta).
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of rmdel: LANG, LC_ALL, LC_CTYPE, LC_MES-
SAGES, and NLSPATH.
FILES
p.file permissions file
s.file history file
z.file temporary copy of the s.file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsprot |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
sccs(1), sccs-admin(1), sccs-cdc(1), sccs-comb(1), sccs-delta(1), sccs-help(1), sccs-prs(1), sccs-prt(1), sccs-sccsdiff(1), sccs-unget(1),
what(1), sccsfile(4), attributes(5), environ(5), standards(5)
DIAGNOSTICS
Use the SCCS help command for explanations (see sccs-help(1)).
SunOS 5.11 2 Jul 2007 sccs-rmdel(1)