i have a lot of messages file in the var directory i want to delete
now i want to keep messages.1 to messages.10 and then delete everything else after 10 which is like 10 to 96
obviously i cant delete these files individual, can someone tell me the command to delete messages.11 to... (1 Reply)
Hello all:
I'm trying to use the tr command to change some text in a file, but it is not working as expected. Here's what I'm trying:
tr 'INVOIC01' 'INVOICZZ' < inputfile > outputfile
It looks to be changing not just the entire string, but any characters within. I just want to change the... (2 Replies)
What does 'directory=`pwd $1` ' mean, I know pwd is present working directory, so does that command take the present working directory of the directory the user is in depending on the varible ($1)? (2 Replies)
When I use the mv command like say, mv file1 ../, it will move file1 to the parent directory of my current working directory. But where would the file go if I do mv file ... (with 3 periods), where would this move file1? (4 Replies)
$ echo 2 * 3 > 5 is a valid inequality.
This will create a file in the current directory named '5' with the number '2' in it, the names of all the files in the current directory, followed by the number '3' and 'is a valid inequality.'
What I do not understand is why 'is a valid inequality' gets... (2 Replies)
I am going through the Unix Made Easy second edition book by John Muster. So far it's been very informative and I can tell it may be a bit out of date.
In one of the exercises it talks about the "sort" command and using it to sort column's of data etc. The "sort" command has changed a bit and... (1 Reply)
Hi,
can you please tell me what is the purpose of the following line:
sh -c /home/dir/script.sh || exit 33
what i am confused is the || is this an OR boolean, or it might have some other purpose.
do you know how this works ?
i believe the first to run is the /home/dir/script.sh but what... (4 Replies)
Discussion started by: antoniotunin
4 Replies
LEARN ABOUT DEBIAN
ha
ha(1) HA archiver ha(1)NAME
ha - a small file archiver utility
SYNOPSIS
ha <command>[<option><option>...] archive [ name ... ]
DESCRIPTION
After the program name comes a command name (single letter) and options (single letters, appended to the command name without a space).
COMMANDS
a[sdqemr012]
Add files matching search pattern to archive.
e[aqty]
Extract files matching search pattern from archive.
x[aqty]
Extract files matching search pattern from archive using path information stored in archive.
l[f] List files currently in archive.
d[q] Delete files matching search pattern from archive. If archive does not contain any files after deletion it is removed.
f[sdqemr012]
Freshen files in archive. All files matching search pattern and newer than version already in archive are updated to archive.
u[sdqemr012]
Update files to archive. All files matching search pattern that are newer than version already in archive or are not yet in archive
are updated to archive.
t[q] Test files in archive.
OPTIONS
0,1,2 Try compression method #. More than one can be specified.
Methods are:
0-CPY Simple copying of files.
1-ASC Default method using sliding window dictionary followed by arithmetic
coder. Offers quite good compression on wide variety of file types.
2-HSC Compression method based on finite context model and arithmetic
coder. Quite slow for binary data, but offers very good compression
especially for longer text files.
y Assume answer yes on all questions.
t Touch files when extracting. Sets file times to current machine time.
r Recurse through subdirectories while searching for files matching search pattern.
f Full listing of stored file information.
m Move files when archiving. Files are removed from disk after they are successfully written to archive.
a Set system specific file attributes when extracting files.
s Find special files when archiving.
e Do not store pathname information.
q Quiet operation.
d Make separate entries for directories. Saves information about empty directories, directory attributes etc. in archive.
AUTHOR
This manual page was written by Mikhail Gusarov <dottedmag@dottedmag.net> for Debian GNU/Linux system (but may be used by others).
ha 0.999p 3 Jul 2008 ha(1)