01-24-2008
Thanks!
Initially it didn't work, and returned "command not found" but after a little research I realised that
nawk is just "new awk" so subtituted
awk, and it worked. (I don't think OS X has nawk installed)
Thank you very much.
Secondary question, if you have time, could you explain
how it's working...
What are the various parts of that command doing? It would help me in the future to understand what is going on.
Cheers.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am training to be support on our solaris based network and was wondering why solaris seems to assign the same mac address to all NICs placed in the machine regardless of how many NICs are in there, when i do a ifconfig -a all nics have same MAC.
Presumably this is a feature and there is... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
2. UNIX Desktop Questions & Answers
Im trying to use a shell script to send to a list of email addresses in a txt file. Here is what i have tried but it keeps sending to dead.letter...
Success.ksh contains...
mailx -s"Night Batch Success" 'cat /Scripts/email_addresses.txt' < /Scripts/email_body_message.txt
The email body... (1 Reply)
Discussion started by: aguad3
1 Replies
3. Shell Programming and Scripting
Hi,
i am working on a project where i have to write a script to find out MAC addresses of the systems with given IP address.
Can anybody tell me which command i can use to find MAC address if you know IP address of the machine.
Thanks (5 Replies)
Discussion started by: manmeet
5 Replies
4. Shell Programming and Scripting
All,
I have a flat file which contains an email address in every line. I am trying to find a way to extract all the email addresses delimited by comma (,). Can you please show me a way, it will be very helpful, thanks. (3 Replies)
Discussion started by: sed_beginner19
3 Replies
5. UNIX for Dummies Questions & Answers
Hi List,
Could someone please point me into the right direction with the following:
I have a file containing a list of street addresses.
I need to sort all the street addresses with the same number to a new file containing the street name and corresponding number.
So:
Strawinskylaan... (3 Replies)
Discussion started by: M474746
3 Replies
6. UNIX for Dummies Questions & Answers
If a web search is done on this topic there are many links but no information included in the documents. So my questions are;
Why does a NIC card have it's own permanent ID. Why can't it share the host name? An ID is an ID.
Why does a computer need two ways to ID it.
If the network... (3 Replies)
Discussion started by: theKbStockpiler
3 Replies
7. Shell Programming and Scripting
Hi
I have an input file with a list of random IP addresses, each on a new line. Below is just an example as I omitted the real IP addresses for obvious reasons.
Input: random_ip.txt
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1... (7 Replies)
Discussion started by: lewk
7 Replies
8. UNIX for Dummies Questions & Answers
Greetings.
I'm in the process of tracking down an issue with Firefox, and need some way of gathering the actual web addresses which are connected to from localhost.
The specific problem centers around the determination/capture of the exact generated app.update.url address formed by the... (2 Replies)
Discussion started by: LinQ
2 Replies
9. Shell Programming and Scripting
I have a problem with a script , i want to see my devices there are up in my network. I want as output the ip addresses of the devices and also the mac address but I only had the ip addresses
#!/bin/bash
while ]
do
-mac)
Extension=5
shift
mac=$1
shift
;;
esac... (1 Reply)
Discussion started by: Roggy
1 Replies
10. Shell Programming and Scripting
Hy over there,
Lets make it simple :)
Using a bash script, how to grep only the ip address and the mac address and put them in a file:.
for example from the dhcp.conf file we got such things:
The script will end up with two columns IP's and MAC adresses as it is showed below:
... (9 Replies)
Discussion started by: hermouche
9 Replies
LEARN ABOUT FREEBSD
mac_none
MAC_NONE(4) BSD Kernel Interfaces Manual MAC_NONE(4)
NAME
mac_none -- null MAC policy module
SYNOPSIS
To compile the null policy into your kernel, place the following lines in your kernel configuration file:
options MAC
options MAC_NONE
Alternately, to load the none module at boot time, place the following line in your kernel configuration file:
options MAC
and in loader.conf(5):
mac_none_load="YES"
DESCRIPTION
The mac_none policy module implements a none MAC policy that has no effect on access control in the system. Unlike mac_stub(4), none of the
MAC entry points are defined.
Label Format
No labels are defined for mac_none.
SEE ALSO
mac(4), mac_biba(4), mac_bsdextended(4), mac_ifoff(4), mac_lomac(4), mac_mls(4), mac_partition(4), mac_portacl(4), mac_seeotheruids(4),
mac_stub(4), mac_test(4), mac(9)
HISTORY
The mac_none policy module first appeared in FreeBSD 5.0 and was developed by the TrustedBSD Project.
AUTHORS
This software was contributed to the FreeBSD Project by Network Associates Labs, the Security Research Division of Network Associates Inc.
under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program.
BUGS
See mac(9) concerning appropriateness for production use. The TrustedBSD MAC Framework is considered experimental in FreeBSD.
While the MAC Framework design is intended to support the containment of the root user, not all attack channels are currently protected by
entry point checks. As such, MAC Framework policies should not be relied on, in isolation, to protect against a malicious privileged user.
BSD
December 1, 2002 BSD