04-09-2004
I'm using csh, primarily and the shell script I'm working on is just in sh.
Can you be more descriptive about the "cool stuff" line? That's really the core of my problem here.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to write a script to read all the filenames with extension .xml in a directory and pass the name of the file, one by one, to another function.
Please help me out.
Regards.
Saurabh (3 Replies)
Discussion started by: bhalotias
3 Replies
2. UNIX for Dummies Questions & Answers
Hi there,
I'm pretty new to UNIX and have tried trawling through this forum to find an answer to what I want to try to do, which I'm sure is very simple but I don't know how to do it.
What I have a a folder that contains multiple files that I have copied from Windows and I want to remove the... (5 Replies)
Discussion started by: johnmcclintock
5 Replies
3. Shell Programming and Scripting
Hi there, i have been working on a backup script and have it just about working, the only problem im left with is that my filenames for my backups are all the same are replacing one another when backing up.
currently i have
BACKUP_FILE=backup_$(date +%d%m%y).tgz
but would like something like... (2 Replies)
Discussion started by: Swinton
2 Replies
4. Shell Programming and Scripting
I have a file name -HRCFTSIN05PLA1602100430444444
my requirement is to split the file in 10000 count each file and to add sequence number.rch at the end of each file.
output should be in this format
HRCFTSIN05PLA160210043044444401.rch
HRCFTSIN05PLA160210043044444402.rch... (4 Replies)
Discussion started by: abhigrkist
4 Replies
5. Shell Programming and Scripting
I have posted this before but did not get many replies, so here it goes again.
I have several files name like this
If the file extension is 1a, I woould like to add at the beggining of the file the following sequence
If the file extension is 1b, thn the entry that should be added is the next... (2 Replies)
Discussion started by: Xterra
2 Replies
6. Shell Programming and Scripting
HI ,
I have a file with multiple lines like below, I need to check on column starting with #prototype if it has the .Number.txt extension do nothing else add 1.txt extension.
Source data
Jdbc_app_data :- sample data
#prototype= sample data from test.1.txt
application_id=122135... (4 Replies)
Discussion started by: gaur.deepti
4 Replies
7. Shell Programming and Scripting
Hi ,
I have a file which has a line starts with $segment_name and has the below data
source data
$Segment_Name = 123.ABC.123.01.txt
$Segment_Name = 123.ABC.ABC.txt
$Segment_Name = 123.ABC.12A3.txtMy target data should be
$Segment_Name = 123.ABC.123.01.txt
$Segment_Name =... (2 Replies)
Discussion started by: shruthidwh
2 Replies
8. AIX
Hi,
I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over)
Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes... (6 Replies)
Discussion started by: aixromeo
6 Replies
9. Shell Programming and Scripting
I have a filename with a bunch of periods that I want to replace with underscores, but I don't want to change the extension.
Ex: I want
file.test1.f-1.fig.eps
to be
file_test1_f-1_fig.eps
Using awk, the following line will replace ALL periods with underscores, but I want to leave the... (2 Replies)
Discussion started by: erinbot
2 Replies
10. Shell Programming and Scripting
hi,
i have a directory which contains some files and a subdirectory. i am writing only the files names to a file using the below code.
ls -ltr | grep "^-" | awk '{print $NF}' > /home/file_list$$
cat /home/file_list$$
s1_abc.txt
s2_def.xls
s3_def.xls
as you can see there is one .txt... (7 Replies)
Discussion started by: Little
7 Replies
LEARN ABOUT REDHAT
groupmod
GROUPMOD(8) System Manager's Manual GROUPMOD(8)
NAME
groupmod - Modify a group
SYNOPSIS
groupmod [-g gid [-o]] [-n group_name ] group
DESCRIPTION
The groupmod command modifies the system account files to reflect the changes that are specified on the command line. The options which
apply to the groupmod command are
-g gid The numerical value of the group's ID. This value must be unique, unless the -o option is used. The value must be non-negative.
Values between 0 and 99 are typically reserved for system groups. Any files which the old group ID is the file group ID must have
the file group ID changed manually.
-n group_name
The name of the group will be changed from group to group_name.
FILES
/etc/group - group information
/etc/gshadow - secure group information
SEE ALSO
chfn(1), chsh(1), passwd(1), groupadd(8), groupdel(8), useradd(8), userdel(8), usermod(8)
AUTHOR
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
GROUPMOD(8)