10-26-2019
If you append | paste -sd \; to the command then you get them in semi-colon separated fields in one line..
This User Gave Thanks to Scrutinizer For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm not that good at scripting and I have to intrepret this script line by line. Can someone please assist me in completing this. Your assistance is greatly appreciated.
#!/bin/sh
# adduser - Adds a new user to the system, including building their
# home directory, copying in... (0 Replies)
Discussion started by: mdpgc
0 Replies
2. UNIX for Dummies Questions & Answers
Hi,
We currently use the below basic scripts to output details that the business requires for our AIX and Sun servers. I have been asked to produce the same sort of script to be used for our NCR MP-RAS UNIX and OS/2 UNIX servers but am not formilar with these forms of Unix. Would greatly... (0 Replies)
Discussion started by: kmuir
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a entry in the file as
::BSNL GUJARAT::India::OUT::NAT::REWEL::POSTPAID::919426199995
if u see this, i have the delimiter as :: ,
all i want is to replace "::" as ":"
so how to do that..
pls help
thanks (10 Replies)
Discussion started by: vasikaran
10 Replies
4. UNIX for Advanced & Expert Users
Hello All
I have always had a question about find and replace in Vi. As this uses Vi, sed, and RegEx I never knew how or where to post the question but I thought I would give it a shot here. Say I have a text file filled with the following:
Sue, your IP address is 192.168.1.10 which is... (4 Replies)
Discussion started by: NoSalt
4 Replies
5. Programming
Hi,
I'm trying to write a C program that finds idle login sessions on RHEL6 and kill the sessions which are idle(inactive) for, say, more than 15 minutes. I tried to use procfs.h is my code. But it doesn't seem to support enough API's as OS Solaris does.(Solaris supports API's that can populate... (10 Replies)
Discussion started by: shreeda
10 Replies
6. UNIX for Dummies Questions & Answers
Trying to locate files less than xx days old, throughout all directories/subdirectories, but excluding certain types of directories and files.
The directories I want to search all contain the same characteristic (dbdef, pldef, ghdef, etc), and there are subdirectories within that I need to... (2 Replies)
Discussion started by: Condmach
2 Replies
7. UNIX for Advanced & Expert Users
lsvg -o shows active VGs. Is there a way to find inactive VGs with a command?
Please advise. (2 Replies)
Discussion started by: Daniel Gate
2 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies
9. Shell Programming and Scripting
Hello Forum,
We have two bootstraps of Chef in our environment which are identified by colour:
/var/chef/cache/cookbooks/bootstrap_cookbooks_version_green
and
/var/chef/cache/cookbooks/bootstrap_cookbooks_version_red
I'm attempting to identify which version is installed based on the name... (11 Replies)
Discussion started by: greavette
11 Replies
LEARN ABOUT REDHAT
ipfwadm-wrapper
IPFWADM-WRAPPER(8) IPFWADM-WRAPPER(8)
NAME
ipfwadm-wrapper - IP firewall administration
SYNOPSIS
ipfwadm-wrapper -A command parameters [options]
ipfwadm-wrapper -I command parameters [options]
ipfwadm-wrapper -O command parameters [options]
ipfwadm-wrapper -F command parameters [options]
ipfwadm-wrapper -M [ -l | -s ] [options]
DESCRIPTION
Ipfwadm-wrapper emulates the behaviour of ipfwadm. You can use this wrapper to use your old ipfwadm firewall rules with ipchains. See
ipfwadm(8) for more details.
If the kernel does not support ipchains (eg. a 2.0 kernel), and the file /sbin/ipfwadm.real exists and is executable, then it will be exe-
cuted with the arguments given to ipfwadm-wrapper. This allows simple dual-booting of 2.2 and 2.0 kernels with the same firewalling
scripts: simply move ipfwadm to ipfwadm.real, and ipfwadm-wrapper to ipfwadm.
SEE ALSO
ipfwadm(8), ipchains(8)
BUGS
The script isn't clever at parsing command line arguments. You must use separate arguments, rather than run them together. For example,
`ipfwadm -Mle' becomes `ipfwadm-wrapper -M -l -e'.
Fragment accounting rules are not translated correctly; they will account packets with source port 65535.
Due to new kernel restrictions, you must be root even to list rules for 2.2 kernels.
If /usr is mounted from NFS, you will not be able to use ipfwadm-wrapper before /usr is mounted.
AUTHOR
Paul ``Rusty'' Russell <ipchains@rustcorp.com>
February 8, 1998 IPFWADM-WRAPPER(8)