Hi Everybody,
I need a help. I have the follow code and I need read the first line of the hosts file. Each line from the file have the format "hostname;IPAddress", on line 4 I just need of the hostname, ok this works! On line 5 I need the hostname before the ipaddr word and the IPAddress after the ipaddr word, but when I run the script, the ipaddr is read like a argument from cut command. How I make this filter works?
exit
I really apreciate you help!
Last edited by Scrutinizer; 04-04-2016 at 11:06 PM..
Reason: code tags
Hi All,
I have space delimited file similar to the one as shown below.. I need to convert it as a pipe delimited, the values inside the pipe delimited file should be as highlighted...
AA ATIU2345098809 009697 005374
BB ATIU2345097809 005445 006518
CC ATIU9685098809 003215 003571
DD... (7 Replies)
I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use
cat file | sed 's/|//t/g'
The above command substituted "/t" not tab in the place of pipe.
Sample file:
abc|123|2012-01-30|2012-04-28|xyz
have to convert to:
abc 123... (6 Replies)
Hi, I have a question how to cut the column from non delimited file
This is my file
gene_id ENSG00000223972 transcript_id ENST00000456328 exon_number 1 gene_biotype pseudogene gene_name DDX11L1 transcript_name DDX11L1-002 tss_id TSS26614
gene_id ENSG00000223972 transcript_id ENST00000515242... (1 Reply)
Hi All,
I need a unix script to convert .csv files to .skv files (changing a comma delimited file to a semi colon delimited file). I am a unix newbie and so don't know where to start. The script will be scheduled using cron and needs to convert each .csv file in a particular folder to a .skv... (4 Replies)
Hi How to make tab delimited file to space delimited?
in put file:
ABC kgy
jkh ghj
ash kjl
o/p file:
ABC kgy
jkh ghj
ash kjl
Use code tags, thanks. (1 Reply)
Hello ppl
I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt
Now I have to join (paste in unix) this A2.txt with external file A3.txt to form
output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
Hi, I have a rquirement in unix as below .
I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column.
ex:
Input Text file:
1|A|apple
2|B|bottle
excel file to be generated as output as... (9 Replies)
Hi,
I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file.
Example of the SQL will be
For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING.
I then concatenate... (2 Replies)
Discussion started by: newbie_01
2 Replies
LEARN ABOUT REDHAT
gkrellmd
gkrellmd(1) User's Manual gkrellmd(1)NAME
gkrellmd - The GNU Krell Monitors Server
SYNOPSIS
gkrellmd [ --help ] [ --verbose ] [ -u | --update-hz N ]
[ -m | --max-clients N ] [ -P | --port N ] [ -a | --allow-host hostname ]
DESCRIPTION
gkrellmd Listens for connections from gkrellm clients. When a gkrellm client connects to a gkrellmd server all builtin monitors collect
their data from the server. However, the gkrellm process is running on the local machine, so any enabled plugins will run in the local
context (Flynn is an example exception to this since it derives its data from the builtin CPU monitor). Also, any command launching will
run commands on the local machine.
There is no support for file system mounting and local mailbox checking on the machine where the gkrellmd server is running.
OPTIONS -h --help
Displays usage information and exits.
-v --version
Prints gkrellmd version and exits.
-V --verbose
Prints connection progress.
-u, --update-hz f
Sets the data update frequency in samples per second for the server. This is independent of and should be less than the gkrellm
client update rate. The rate can be from 1 to 10 and should be lower to minimize network traffic. A value of not much more than
1/2 the client update rate is best where it is not important to minimize network traffic.
-m, --max-clients N
Sets the maximum number of simultaneous clients allowed to connect to the server.
-P, --port server_port
Use server_port for the network connection.
-a, --allow-host hostname
Specify hosts which are allowed to connect. Multiple allow-host arguments may be given. If no hosts are specified on the command
line or in a gkrellmd.conf file, then all hosts are allowed to connect. Also, if hostname is the keyword ALL then all hosts are
allowed. This option is additive and specified hosts will be added to the hostnames listed in gkrellmd.conf files unless the
--clear-hosts option is given first.
-c, --clear-hosts
Clears the current list of allowed hosts. Use this before any --allow-host arguments if you want command line allowed hosts to
override and not be additive to those specified in gkrellmd.conf files.
FILES
/etc/gkrellmd.conf
System server config which is read first. The config file may contain lines similar to the command line args. For example:
allow-host localhost
allow-host 127.0.0.1
port 19150
max-clients 2
update-hz 2
/usr/local/etc/gkrellmd.conf
Local server config file which is read second.
~/.gkrellmd.conf
User server config file which is read last.
With the exception of --allow-hosts, command line args will override options in gkrellmd.conf files.
AUTHOR
Bill Wilson <bill@gkrellm.net>. http://www.gkrellm.net/
GNU /Linux July 24, 2002 gkrellmd(1)