10 More Discussions You Might Find Interesting
1. OS X (Apple)
I am a beginner, trying to get basic background utilities like at and cron to work on mac os x.
I am typing the following at the prompt:
at now + 1 minute
open -a textedit
^D
nothing happens at the appointed time.
What to change? (7 Replies)
Discussion started by: sakurashinken
7 Replies
2. UNIX for Dummies Questions & Answers
Can someone give me an example how to use bru command line with the -T option?
Thanks, (1 Reply)
Discussion started by: mojoman
1 Replies
3. Shell Programming and Scripting
Hi,
I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server.
How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies
4. Shell Programming and Scripting
hi experts,
Can you please help me out in removing delimiters with in double quotes from a CSV file.
input:
=====
a,"bnn,",dgd, "sagfh,dj",ad
output
=====
a,"bnn",dgd, "sagfhdj",ad
there are so mnay fileds in a row and there are millions of rows.
Thanks in an advance.... (6 Replies)
Discussion started by: subhendu81
6 Replies
5. Solaris
hello sir,
can anyone tell about untility in Solaris similiar untility as SMITY in AIX and SAM in HP (2 Replies)
Discussion started by: amarnathbasis8
2 Replies
6. Filesystems, Disks and Memory
Hello,
I need to restore a file that was backed up using BRU. For starters I need to know how to list the archive on my tape.
I tried the following which is what the man page for BRU sugegsts: bru -xvf /dev/nst1 /violatio.sh
I get the following error
bru: warning - read error on first... (1 Reply)
Discussion started by: mojoman
1 Replies
7. Shell Programming and Scripting
I need some help.. I would like to make a script that uses the tr utility to "encrypt" a selected file. I need to know how to set up the script so that if i type encrypt(script name) the letter that i want to start the encryption and then the file name, that it starts with the entered letter, and... (1 Reply)
Discussion started by: frankthetank115
1 Replies
8. Programming
I wrote a makefile, every thing is working fine,
But One of the C header files which is created by me is kept in a different folder other than the current directory,
I have given this PATH to VPATH Variable
Example :- VPATH = /home/user1/projects/victor.h
It gives an error as : file... (4 Replies)
Discussion started by: victorvvk
4 Replies
9. Filesystems, Disks and Memory
I'm having trouble extracting files from a bru tape. The following are commands that I've tried and the respective outputs.
will.rlee 224> bru -vgf /dev/nrtape
label:
created: Mon Nov 7 18:21:41 1994
device: freedom:/dev/mt/tps0d6
user: root
group: ... (1 Reply)
Discussion started by: sherbet808
1 Replies
10. UNIX for Dummies Questions & Answers
I want to pull out the 3rd column of information and stick in a file. What is the Utility I use to do this? (8 Replies)
Discussion started by: James
8 Replies
CHOWN(8) BSD System Manager's Manual CHOWN(8)
NAME
chown -- change file owner and group
SYNOPSIS
chown [-fhvx] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhvx] [-R [-H | -L | -P]] :group file ...
DESCRIPTION
The chown utility changes the user ID and/or the group ID of the specified files. Symbolic links named by arguments are silently left
unchanged unless -h is used.
The options are as follows:
-H If the -R option is specified, symbolic links on the command line are followed. (Symbolic links encountered in the tree traversal
are not followed.)
-L If the -R option is specified, all symbolic links are followed.
-P If the -R option is specified, no symbolic links are followed. This is the default.
-R Change the user ID and/or the group ID of the specified directory trees (recursively, including their contents) and files. Beware of
unintentionally matching the ``..'' hard link to the parent directory when using wildcards like ``.*''.
-f Do not report any failure to change file owner or group, nor modify the exit status to reflect such failures.
-h If the file is a symbolic link, change the user ID and/or the group ID of the link itself.
-v Cause chown to be verbose, showing files as the owner is modified. If the -v flag is specified more than once, chown will print the
filename, followed by the old and new numeric user/group ID.
-x File system mount points are not traversed.
The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options override each other and the command's
actions are determined by the last one specified.
The owner and group operands are both optional, however, one must be specified. If the group operand is specified, it must be preceded by a
colon (``:'') character.
The owner may be either a numeric user ID or a user name. If a user name is also a numeric user ID, the operand is used as a user name. The
group may be either a numeric group ID or a group name. If a group name is also a numeric group ID, the operand is used as a group name.
The ownership of a file may only be altered by a super-user for obvious security reasons.
EXIT STATUS
The chown utility exits 0 on success, and >0 if an error occurs.
COMPATIBILITY
Previous versions of the chown utility used the dot (``.'') character to distinguish the group name. This has been changed to be a colon
(``:'') character so that user and group names may contain the dot character.
On previous versions of this system, symbolic links did not have owners.
The -v and -x options are non-standard and their use in scripts is not recommended.
SEE ALSO
chgrp(1), find(1), chown(2), fts(3), symlink(7)
STANDARDS
The chown utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compliant.
HISTORY
A chown utility appeared in Version 1 AT&T UNIX.
BSD
February 21, 2010 BSD