I have a school project to create a shell program same as calendar i must create
a txt file with celebrations with vi i know this but the problem is i don't know awk
and grep.
The object of object is to create a program who read a date an appear the celebration.
Can you help me please !!!... (1 Reply)
I'm trying to take a list of domains, find out the MX resolve it to IP then find out what the NS is and output the contents to a new file.
The only problem i'm having is when checking the Ip or host of the MX i can only get it to print the column with the MX record and the results of the host... (1 Reply)
I am writing a script that ssh's out to our various servers and extracts diskspace info to generate into a report. With the mix of servers linux/solairs 8-10/AIX the easiest way is to use df -k (though I much rather prefer df -h).
I have pasted the relevant code:
dfdata=`ssh -q -o... (1 Reply)
Hello,
Please advise. Scoured this site, as well as google for answers. However if you do not know what to search for, it's a bit hard to find answers.
INPUT:
ACTASS=
802
BASECOS=
279
COSNCHG=
3
CUSCOS=
52
UPLDCOS=
2
DESIRED OUTPUT:
ACTASS=802
BASECOS=279 (13 Replies)
Hi,
I would like to know the awk command that gets the below o/p:
File contents:
Board1;9a;60;36;60.0;60;0;0.0
Board2;96;60;35;58.3;55;0;0.0
Board3;92;60;60;100.0;60;60;100.0
Used awk script:
#!/bin/awk -f
BEGIN {
FS = ";";
printf (" Device | ... (1 Reply)
Hoping for some assistance.
my source file consists of:
os, ip, username
win7, 123.56.78, john
win7, 123.56.78, paul
win7, 10.1.1.1, john
win7, 10.2.2.3, joe
I've been trying to run a script that will only return ip and username where the IP address is the same and the username is... (3 Replies)
---------- Post updated at 11:48 AM ---------- Previous update was at 11:46 AM ----------
Hello all
I have an awk code that successfully creates separate text files based on the first six letters of the second field. What it doesn't do is preserve the header into each resulting file.
... (6 Replies)
Hello there,
I am trying to get my head around the section below of a script we use that incorporates AWK and Regular Expressions.
{ match($0,"The broker*");print $1,$2,$3 ":", substr($0, RSTART,RLENGTH)}
I have a basic understanding of how match works, what I am struggling with is the... (2 Replies)
HI Folks -
I have a business need to check weather or not there are "active" sessions within a particular application I interact with prior to running any automation.
I have built a function that first exports all "sessions" from my respective application to a text file. The output is as... (2 Replies)
Hello all,
I have searched high and low for a solution to this, many have come really close but not quite what I'm after.
I have 2 files. One contains GUID's, for example:
8121E002-96FE-4C9C-BC5A-6AFF20DACECD
84468F30-F3B7-418B-81F0-0908E80792BF
A second file, contains a path to the... (8 Replies)
Discussion started by: tirmUK
8 Replies
LEARN ABOUT OSF1
mkfset
mkfset(8) System Manager's Manual mkfset(8)NAME
mkfset - Create a fileset in an existing AdvFS file domain
SYNOPSIS
/sbin/mkfset domain fileset
OPERANDS
Specifies the name of an existing AdvFS file domain. Specifies the name of the fileset to be created in the specified file domain.
DESCRIPTION
The mkfset command creates an AdvFS fileset within an existing file domain. You must create at least one fileset per file domain; however,
you can create multiple filesets within a file domain. You can mount and unmount each fileset independently of the other filesets in the
file domain. You can assign fileset quotas (block and file usage limits) to filesets.
Use the following commands to manipulate filesets: Displays the filesets associated with a domain. Removes a fileset (and all of its
files) from the file domain. Assigns a new name to an existing fileset. Changes fileset attributes; specifically fileset quotas.
For more information, see the reference pages for each command.
RESTRICTIONS
You must be the root user to use this utility.
Each fileset within a domain must have a unique name of up to 31 characters. All whitespace characters (tab, new line, space and so on)
and the / # : * ? characters are invalid for fileset names.
EXAMPLE
The following example creates two filesets, credit_fs and debit_fs, within an existing domain called accounts_dmn. # mkfset accounts_dmn
credit_fs # mkfset accounts_dmn debit_fs To mount the newly created credit_fs fileset on the /mnt/credit directory, enter: # mount -t advfs
accounts_dmn#credit_fs /mnt/credit You can add filesets to the /etc/fstab file in the same manner that you add any file system. Once added,
filesets are mounted each time you reboot the system and fileset quotas are enabled. For example, to automatically mount the credit_fs
fileset, add the following line to your fstab file:
accounts_dmn#credit_fs /mnt/credit advfs rq, userquota, groupquota
SEE ALSO
Commands: chfsets(8), mkfdmn(8), renamefset(8), rmfset(8), showfdmn(8), showfsets(8)
File Formats: advfs(4)mkfset(8)