10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Everyone,
I have a sample file raw.txt as shown below :
Drive Bays
Bay Name : SD-2C
Number of Standby Power Supplies : 4
Number of Drive Enclosures : 12
Summary Status of Contained Modules
All... (6 Replies)
Discussion started by: rahul2662
6 Replies
2. Shell Programming and Scripting
This basic code works.
I have a very long list, almost 10000 lines that I am building into the array. Each line has either 2 or 3 fields as shown in the code snippit. The array elements are static (for a few reasons that out of scope of this question) the list has to be "built in".
It... (5 Replies)
Discussion started by: sumguy
5 Replies
3. Shell Programming and Scripting
Hi All.
This my first post to this forum, and i assuming it will be best out-of all.
I am quite new to Unix scripting so please excuse me for any silly questions -
I am trying to create on Unix script in which it telnet to my server, check the connectivity of the server and then it... (2 Replies)
Discussion started by: HHarsh
2 Replies
4. Shell Programming and Scripting
Hi
I have a file
name1 xxxxx
name1 xxxxx
name1 yyyyy
name 1 zzzzz
name1 Uniprot Id 1234
name2 sssss
name2 eeeee
name2 bengamine
name2 Uniprot Id 3456
......................and so on
I have to capture Uniprot IDs only in a separate file so that output contain only
... (20 Replies)
Discussion started by: manigrover
20 Replies
5. Shell Programming and Scripting
Hi,
I have one file as follows and I need to read this file contents in an HTML format. And send html file to some mail ids using sendmail.
Communications Pvt Ltd
Report
AccountId Name Code IdBill Balance ... (3 Replies)
Discussion started by: Kattoor
3 Replies
6. Shell Programming and Scripting
I'm a noob working on a script to take 3 user inputs. One of them is simply a variable: "poolname". The other 2 are cases: "groupa/groupb" and "enable/disable". "groupa" and "groupb" reference 2 files - groupa.txt or groupb.txt. These files simply consist of a list of server IP addresses and port... (2 Replies)
Discussion started by: *nixnoob
2 Replies
7. Shell Programming and Scripting
Hello All,
How i can put loop in nawk. what i want is that i define a variable which contain vlaues like var='1 2 3 4 5' and then define for loop which gives vlaue to nawk one by one to varilable inside nawk and then print it.
cat /omp-data/logs/5etr/081121.APX | nawk -v CDNLIST='700 701' '
... (1 Reply)
Discussion started by: wakhan
1 Replies
8. Shell Programming and Scripting
i have the equation like below
07:35:07 ( AB : 2319f.ab * 22) + ( AB : 2320f.ab * 22.03 ) + ( AB :2321f.ab * 22.07 ) ...... N
i want put ":" as a delimiter and break the equation like below
2319f.ab * 22
2320f.ab *22.03
2321f.ab * 22.07
.
.
N
i know the number of... (1 Reply)
Discussion started by: mail2sant
1 Replies
9. UNIX for Dummies Questions & Answers
i have got a file where the env command is appended 5 times. i have to now look for the username and display it in the form of
1) PWD=/home/lee.ballancore
2) USER=lee.ballancore
3) MAIL=/var/spool/mail/lee.ballancore
4) LOGNAME=lee.ballancore
5) HOME=/home/lee.ballancore
6)... (1 Reply)
Discussion started by: nehaquick
1 Replies
10. Shell Programming and Scripting
Perl file::find can I sort the out put
I am using file::find in my script but how I wish to process each file found in date order.
Can I sort this module?
eg
part of current script is....
use File::Find;
# Recursively find all files and directories in $mqueue_directory
find(\&wanted,... (2 Replies)
Discussion started by: Andrek
2 Replies
PETHTOOL(8) PETHTOOL(8)
NAME
pethtool - Display or change ethernet card settings
SYNOPSIS
pethtool [OPTIONS] [<INTERFACE>]
DESCRIPTION
This script mimic ethtool behavior, but is written purely in python and python module ethtool.
OPTIONS
INTERFACE
Is the name of the ethernet device on which pethtool should operate.
-h, --help
Show help message and exit.
-c|--show-coalesce
Show coalesce options
-C|--coalesce
Set coalesce options
adaptive-rx on|off
adaptive-tx on|off
rx-usecs N
rx-frames N
rx-usecs-irq N
rx-frames-irq N
tx-usecs N
tx-frames N
tx-usecs-irq N
tx-frames-irq N
stats-block-usecs N
pkt-rate-low N
rx-usecs-low N
rx-frames-low N
tx-usecs-low N
tx-frames-low N
pkt-rate-high N
rx-usecs-high N
rx-frames-high N
tx-usecs-high N
tx-frames-high N
sample-interval N
-i|--driver
Show driver information
-k|--show-offload
Get protocol offload information
-K|--offload
Set protocol offload
[ tso on|off ]
SEE ALSO
ethtool(8)
AUTHORS
Arnaldo Carvalho de Melo <acme@redhat.com>
Man page written by Miroslav Suchy <msuchy@redhat.com>
08/07/2012 PETHTOOL(8)