8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am new to unix. how to get only the no. of lines output from the wc -l command.
Input:
wc -l filename
it gives
<no.of lines> filename
i need only the interger value.
as
<no.of lines>
Thanks in advance (2 Replies)
Discussion started by: sanvel
2 Replies
2. OS X (Apple)
Hello,
I installed gftp using darwinports on Snow Leopard. Install appeared to go fine with no errors. When trying to launch gftp by starting X11, then typing /opt/local/bin/gftp in the terminal, nothing happens until about 30 minutes later when only a partial window appears.
I get the... (0 Replies)
Discussion started by: Allasso
0 Replies
3. Shell Programming and Scripting
Greetings,
I have a script that uses this syntax:
for i in `ls *.pll`
do
echo Compiling Lib $i .....
frmcmp.sh userid=$LOGON module_type=LIBRARY module=$i compile_all=yes batch=yes
done
mv *.pll ../libs
mv *.plx ../libs
mv *.err ../libs
If there are no files that match though I... (9 Replies)
Discussion started by: mjdbhouse
9 Replies
4. UNIX for Dummies Questions & Answers
Is there any way to use sed and count the number of alphabetic characters in a sentence? (4 Replies)
Discussion started by: brentdeback
4 Replies
5. Programming
Ok i am looking to start coding for an online text game, The game is called Ansalon for those who are interested *The original, not to be confused with the newer Ansalon* And i was wondering if anyone could point me in the right direction of where i can go to start looking at information for that.... (3 Replies)
Discussion started by: Corrail
3 Replies
6. UNIX for Dummies Questions & Answers
what happens if the script doesn't get Y,y,N, or n? Will it just loop back up and ask the question again? I tried to get mine to give me another response to tell me my input was invalid, but ran into problems with it. (8 Replies)
Discussion started by: wmosley2
8 Replies
7. UNIX for Dummies Questions & Answers
what is the function of swap in linux why i have to create apsolutely a particion for the swap when i install (i installed lnx4win mandrake and made an automat. disk particion and the install program one of my disk partitions that was 3gb devidet in 4 one native 700mb swap 600mb and the others i... (1 Reply)
Discussion started by: user666
1 Replies
8. UNIX for Dummies Questions & Answers
Hay everyone, i would like to take this opportunity to thank all of you who helped me make the decision to get a linux distro. As a newbie, Im defininately considering buying Mandrake Linux... I went to the site and phew..... 2300 applications, i think ill have a good time. But i do have a... (5 Replies)
Discussion started by: LolapaloL
5 Replies
install(1B) SunOS/BSD Compatibility Package Commands install(1B)
NAME
install - install files
SYNOPSIS
/usr/ucb/install [-cs] [-g group] [-m mode] [-o owner] filename1 filename2
/usr/ucb/install [-cs] [-g group] [-m mode] [-o owner] filename... directory
/usr/ucb/install -d [-g group] [-m mode] [-o owner] directory
DESCRIPTION
install is used within makefiles to copy new versions of files into a destination directory and to create the destination directory itself.
The first two forms are similar to the cp(1) command with the addition that executable files can be stripped during the copy and the owner,
group, and mode of the installed file(s) can be given.
The third form can be used to create a destination directory with the required owner, group and permissions.
Note: install uses no special privileges to copy files from one place to another. The implications of this are:
o You must have permission to read the files to be installed.
o You must have permission to copy into the destination file or directory.
o You must have permission to change the modes on the final copy of the file if you want to use the -m option to change modes.
o You must be superuser if you want to specify the ownership of the installed file with -o. If you are not the super-user, or if -o is
not in effect, the installed file will be owned by you, regardless of who owns the original.
OPTIONS
-c Copy files. In fact install always copies files, but the -c option is retained for backwards compatibility with old shell
scripts that might otherwise break.
-d Create a directory. Missing parent directories are created as required as in mkdir -p. If the directory already exists, the
owner, group and mode will be set to the values given on the command line.
-s Strip executable files as they are copied.
-g group Set the group ownership of the installed file or directory. (staff by default.)
-m mode Set the mode for the installed file or directory. (0755 by default.)
-o owner If run as root, set the ownership of the installed file to the user-ID of owner.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO
chgrp(1), chmod(1), chown(1), cp(1), mkdir(1), strip(1), install(1M), attributes(5)
SunOS 5.10 14 Sep 1992 install(1B)