11-12-2018
Did you read and understand posts #2 and #3?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Actually I got a list of file end with *.txt
I want to use the same command apply to all the *.txt
Thus I try to find out the fastest way to write those same command in a script and then want to let them run automatics.
For example:
I got the file below:
file1.txt
file2.txt
file3.txt... (4 Replies)
Discussion started by: patrick87
4 Replies
2. Shell Programming and Scripting
Hi Experts,
I am adding a column of numbers with awk , however not getting correct output:
# awk '{sum+=$1} END {print sum}' datafile
2.15291e+06
How can I getthe output like : 2152910
Thank you..
# awk '{sum+=$1} END {print sum}' datafile
2.15079e+06 (3 Replies)
Discussion started by: rveri
3 Replies
3. Shell Programming and Scripting
I want to filter 2nd column = 2 using awk
$ cat t
1 2
2 4
$ VAR=2
#variable worked in print
$ cat t | awk -v ID=$VAR ' { print ID}'
2
2
# but variable didn't work in awk filter
$ cat t | awk -v ID=$VAR '$2~/ID/ { print $0}' (2 Replies)
Discussion started by: honglus
2 Replies
4. Shell Programming and Scripting
typeset -i i=1
while read -r filename; do
Splitfile=`$Targetfile_$i.txt`
awk 'substr($0,1,5) == substr($filename,1,5) && substr($0,526,2) == substr($filename,6,2) && substr($0,750,12) == substr($filename,8,12)' $SourceFilename >> $Splitfile
i=i+1
done < /tmp/list.out
I am using this logic... (1 Reply)
Discussion started by: pukars4u
1 Replies
5. Shell Programming and Scripting
Hi
I have many problems with a script. I have a script that formats a text file but always prints the same error when i try to execute it
The code is that:
{
if (NF==17){
print $0
}else{
fields=NF;
all=$0;
while... (2 Replies)
Discussion started by: fate
2 Replies
6. UNIX for Dummies Questions & Answers
Hello Experts
while read eachline
do
val $eachline| sed 's/*$//'
echo $val
done < user/oracle/Test_admin/myfolder/bakup_new/part_bkptemp_part_bkp_repeated/list.txt
it not printing any value where I am missing pls help
thanks (1 Reply)
Discussion started by: aks_1902
1 Replies
7. Shell Programming and Scripting
Hi,
I have a situation to compare one file, say file1.txt with a set of files in directory.The directory contains more than 100 files.
To be more precise, the requirement is to compare the first field of file1.txt with the first field in all the files in the directory.The files in the... (10 Replies)
Discussion started by: anandek
10 Replies
8. Shell Programming and Scripting
Hello experts,
I'm stuck with this script for three days now. Here's what i need.
I need to split a large delimited (,) file into 2 files based on the value present in the last field.
Samp: Something.csv
bca,adc,asdf,123,12C
bca,adc,asdf,123,13C
def,adc,asdf,123,12A
I need this split... (6 Replies)
Discussion started by: shell_boy23
6 Replies
9. Shell Programming and Scripting
consider the script below
sh /opt/hqe/hqapi1-client-5.0.0/bin/hqapi.sh alert list --host=localhost --port=7443 --user=hqadmin --password=hqadmin --secure=true >/tmp/alerts.xml
awk -F'' '{for(i=1;i<=NF;i++){
if($i=="Alert id") {
if(id!="")
if(dt!=""){
cmd="sh someScript.sh... (2 Replies)
Discussion started by: vivek d r
2 Replies
10. Shell Programming and Scripting
Good evening, Im newbie at unix specially with awk
From an scheduler program called Autosys i want to extract some data reading an inputfile that comprises jobs names, then formating the output to columns for example
1.
This is the inputfile:
$ more MapaRep.txt
ds_extra_nikira_usuarios... (18 Replies)
Discussion started by: alexcol
18 Replies
LEARN ABOUT DEBIAN
ib_write_bw_postlist
ib_write_bw_postlist(1) User Commands ib_write_bw_postlist(1)
NAME
ib_write_bw_postlist - RDMA write post list bandwidth test
SYNOPSIS
ib_write_bw_postlist [ options ] [ server IP address ]
DESCRIPTION
This program tests the bandwidth of RMDA write transactions.
OPTIONS
-p, --port=<port>
listen on/connect to port <port> (default 18515)
-d, --ib-dev=<dev>
use IB device <dev> (default first device found)
-i, --ib-port=<port>
use port <port> of IB device (default 1)
-c, --connection=<RC/UC>
connection type RC/UC (default RC)
-m, --mtu=<mtu>
mtu size (256 - 4096. default for hermon is 2048)
-g, --post=<num of posts>
number of posts for each qp in the chain (default tx_depth)
-q, --qp=<num of qp's>
Num of qp's(default 1)
-s, --size=<size>
size of message to exchange (default 65536)
-a, --all
Run sizes from 2 till 2^23
-t, --tx-depth=<dep>
size of tx queue (default 100)
-n, --iters=<iters>
number of exchanges (at least 2, default 5000)
-I, --inline_size=<size>
max size of message to be sent in inline mode (default 400)
-b, --bidirectional
measure bidirectional bandwidth (default unidirectional)
-V, --version
display version number
-F, --CPU-freq
do not fail even if cpufreq_ondemand module is loaded
AUTHOR
Guy Coates < gmpc@sanger.ac.uk >
perftest February 20, 2008 ib_write_bw_postlist(1)