05-14-2015
Did you test any of the proposals? Are there errors? If yes, post output.
You can run the proposals on groups of files, e.g. all starting with "A", then "B", etc. to keep execution times manageable.
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
3. UNIX for Dummies Questions & Answers
strange :)
can you tell why?:cool:
#!/bin/bash
echo " enter your age "
read age
if ; then
echo " you do not have to pay tax "
elif ]; then
echo " you are eligible for income tax "
else
echo " you dont have to pay tax "
fi (3 Replies)
Discussion started by: me.
3 Replies
4. UNIX for Dummies Questions & Answers
Hi ,
i have some files of specific pattern ...i need to look for files which are having size greater than zero and move those files to another directory..
Ex...
abc_0702,
abc_0709,
abc_782
abc_1234 ...etc
need to find out which is having the size >0 and move those to target directory..... (7 Replies)
Discussion started by: dssyadav
7 Replies
5. Shell Programming and Scripting
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies
6. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
7. Shell Programming and Scripting
Okay, so I have a rather large text file and will have to process many more and this will save me hours of work.
I'm not very good at scripting, so bear with me please.
Working on Linux RHEL
I've been able to filter and edit and clean up using sed, but I have a problem with moving lines.
... (9 Replies)
Discussion started by: rex007can
9 Replies
8. Shell Programming and Scripting
Hi everybody,
I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o
My code:
#!/bin/sh
set -e
set -u
export IFS=
optl="Optl"
LOCSTORCLI="/opt/lsi/storcli/storcli"
($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies
9. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
10. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
chgrp(1) General Commands Manual chgrp(1)
NAME
chgrp - Changes the group ownership of a file or directory
SYNOPSIS
chgrp [-fhR] group file
The chgrp command changes the group associated with the specified file or directory to group.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
chgrp: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
[Tru64 UNIX] Suppresses all error reporting. [Tru64 UNIX] If file is a symbolic link, the command chgrp -h file changes the group of the
symbolic link. The command chgrp file changes the group of the file referenced by the symbolic link. Causes chgrp to descend recursively
through its directory arguments, setting the specified group ID.
OPERANDS
A group name from the group database or a numeric group ID. Either specifies a group ID to be given to each file named by one of the file
operands. If a numeric group operand exists in the group database as a group name, the group ID number associated with that group name is
used as the group ID. A pathname of a file whose group ID is to be modified.
DESCRIPTION
To change the group ID of a file, you must have superuser privilege or your effective user ID must match the owner ID of the file. If you
do not have superuser privilege you can change the group ID of a file only to your effective group ID or to the value of a group of which
you are a member.
The group argument must be either a valid group name that already exists in the group database or a valid group ID.
For each file operand, the chgrp command performs actions equivalent to the chown() function called with the following arguments: The file
operand is used as the path argument. The user ID of the file is used as the owner argument. The specified group ID is used as the group
argument.
Unless the chgrp command is invoked by a process with appropriate privileges, the set-user-ID and set-group-ID bits of a file are cleared
upon successful completion.
NOTES
If the chgrp command is invoked with the -R option and attempts but fails to change the group ID of a particular file in a specified file
hierarchy, it continues to process the remaining files in the hierarchy. If the chgrp command cannot read or search a directory within a
hierarchy, it continues to process the other parts of the hierarchy that are accessible.
EXIT STATUS
The following exit values are returned: Successful completion, all requested changes were made. An error occurred.
EXAMPLES
To change the group ownership of the file or directory named proposals to staff, enter: chgrp staff proposals
The group access permissions for proposals now apply to staff. See chmod for details.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of chgrp: Provides a default value for the internationalization variables that are
unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari-
ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value,
overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes
of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for-
mat and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of
LC_MESSAGES.
FILES
Contains group information.
SEE ALSO
Commands: chmod(1), chown(1), groups(1)
Functions: chmod(2), chown(2)
Files: group(4)
Standards: standards(5)
chgrp(1)