10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Good day,
Anybody, know how to clean/free up the Cluster_boot partition in TRU64
Thank you in advance
Miaka (0 Replies)
Discussion started by: miaka1012
0 Replies
2. Shell Programming and Scripting
Hello,
I need to compare the size of a file to what it's size was 20min ago. So far my outline script is:ls -ls /home > filesizeafter.txt
compare filesizeafter.txt filesizebefore.txt > filesizechange.txt
if /home filesizechange.txt > 100 {
email root;
}
ls -ls /home >... (2 Replies)
Discussion started by: chyurdan
2 Replies
3. Shell Programming and Scripting
solaris 10 (c shell)
need a command or script that will add up all (*.tmp) file sizes in bytes of a single directory, or kbytes, no matter (1 Reply)
Discussion started by: ajp7701
1 Replies
4. Solaris
I disabled the boot-archive service by using
#svcadm disable svc:/system/boot-archive:default
then i rebooted my system but i am unable to boot. It throws the following errors
CONSOLE LOGIN SERVICE(S) CANNOT RUN
then it automatically asked me for the maintenance mode passwd.
i logged... (3 Replies)
Discussion started by: dinu
3 Replies
5. UNIX for Dummies Questions & Answers
Hi everyone!
I need to compare two file sizes.
One of them (size) will be stored in a flat file and the other coming from a listed file.
I can now get the first file size using:
SIZE=`ls -l $DOCTYPE | awk '{print $5}'`
1. How can I store this value in a flat file?
2. How... (2 Replies)
Discussion started by: mrreds
2 Replies
6. Solaris
hi, I' ve found an error while starting up solaris 10, so I booted in safe mode from grub and modified the menu.lst with vi, to obtain a verbose output of the error. It says
failed to readsuperblock
diskread reading beyound end of ramdisk
start = 0x800 size=0x800
...
...
panic: cannot... (9 Replies)
Discussion started by: freeware
9 Replies
7. Shell Programming and Scripting
I have 2 big files in the size of gb. They are same with respect to content, both are “,” delimited. Now both of them are created by two different processes but has the same logic. The problem is they are differing only in few bytes for e.g one file is 202195751 bytes other is 202195773. So... (2 Replies)
Discussion started by: dsravan
2 Replies
8. Solaris
I had logged into Server via ALOM and was placed into runlevel 5 other than 3 which is default.
I did a svcadm delete boot-archive, and was promptly placed in runlevel 3.
Now, I am unable to do a telnet or login into the server through any other service.
bash-3.00# svcs -a
svcs -a
STATE ... (3 Replies)
Discussion started by: praveenr
3 Replies
9. Shell Programming and Scripting
hi
ls -l * | sed 's/\+/ /g' | cut -f5 -d " " >out1
ls -l * | sed 's/\+/ /g' | cut -f5 -d " " >out2
diff out1 out2
i tried this it will work fine and i can see difference
but i need a script which should neglect, if the difference b/w files is small
and
it should display... (5 Replies)
Discussion started by: revenna
5 Replies
10. UNIX for Dummies Questions & Answers
Hi I need to take a list of files that are defined by an ls -ltr or grep for particular file names - and add up the byte size colum which is field 5 seperated by a space.
I tried to do this but I think I am way off:
for file in 'ls -ltr | grep 20070916 | nawk -F" " '{temp+=5} END {print... (1 Reply)
Discussion started by: llsmr777
1 Replies
AR(1) General Commands Manual AR(1)
NAME
ar - archive and library maintainer
SYNOPSIS
ar key [ posname ] afile name ...
DESCRIPTION
Ar maintains groups of files combined into a single archive file. Its main use is to create and update library files as used by the
loader. It can be used, though, for any similar purpose.
Key is one character from the set drqtpmx, optionally concatenated with one or more of vuaibcl. Afile is the archive file. The names are
constituent files in the archive file. The meanings of the key characters are:
d Delete the named files from the archive file.
r Replace the named files in the archive file. If the optional character u is used with r, then only those files with modified dates
later than the archive files are replaced. If an optional positioning character from the set abi is used, then the posname argument
must be present and specifies that new files are to be placed after (a) or before (b or i) posname. Otherwise new files are placed
at the end.
q Quickly append the named files to the end of the archive file. Optional positioning characters are invalid. The command does not
check whether the added members are already in the archive. Useful only to avoid quadratic behavior when creating a large archive
piece-by-piece.
t Print a table of contents of the archive file. If no names are given, all files in the archive are tabled. If names are given,
only those files are tabled.
p Print the named files in the archive.
m Move the named files to the end of the archive. If a positioning character is present, then the posname argument must be present
and, as in r, specifies where the files are to be moved.
x Extract the named files. If no names are given, all files in the archive are extracted. In neither case does x alter the archive
file.
v Verbose. Under the verbose option, ar gives a file-by-file description of the making of a new archive file from the old archive and
the constituent files. When used with t, it gives a long listing of all information about the files. When used with p, it precedes
each file with a name.
c Create. Normally ar will create afile when it needs to. The create option suppresses the normal message that is produced when
afile is created.
l Local. Normally ar places its temporary files in the directory /tmp. This option causes them to be placed in the local directory.
FILES
/tmp/v* temporaries
SEE ALSO
ld(1), ar(5), lorder(1)
BUGS
If the same file is mentioned twice in an argument list, it may be put in the archive twice.
AR(1)