1. The problem statement, all variables and given/known data:
I dont know what I do wrong, I am trying to create shell programming database:
I have this command first:
&& > $fname
...
echo $Name:$Surname:$Agency:$Tel:$Ref: >> $fname
then I have
echo " Name Surname Agency Tel... (2 Replies)
Hi,
I usually use Access to sort data however for some reason its not working. Our systems guys and myself cannot figure it out so ive tried to use AWK to do the sorting. The file is made up of single lines in the format
... (4 Replies)
Hi,
I've a fixed width file where I need to count the number of patterns from each line between characters 1 to 15 . so can we sort them and get a count for each pattern on the file between 1 to 15 characters.
65795648617522383763831552 410828003265795648 6175223837... (5 Replies)
Hello,
Is it possible to do match and sort the data from two fields in a file using awk?
Like for example:
input
apple cat
in rat
out sky
cat pen
rat ball
sky cpu
pen linux
ball unix
cpu paper
linux phone
unix
paper
phone (8 Replies)
Input file
---------
12:name1:|host1|host1|host2|host1
13:name2:|host1|host1|host2|host3
14:name3:
......
Required output
---------------
12:name1:host1(2)|host1(1)
13:name2:host1(2)|host2(1)|host3(1)
14:name3:
where (x) - Count how many times field appears in last column
... (3 Replies)
Well,
i have a script and it makes a txt like this :
Caps 12
cans 9
cols 10
my print line is something like this
for(i in a)
print i, a;
i have to order the txt from higher to low like: (6 Replies)
dear friends..
i have data :
20130603;ABCD;ABCD1;14030;51271;0.000;0.000;21.000
20130603;ABCD;ABCD2;14030;51272;4853.000;53591.000;40539.000
20130603;ABCD;ABCD3;14030;51273;38024.000;385068.000;396424.000
20130603;ABCD;EFGH1;14030;51334;285879.000;563964.000;141780.000... (4 Replies)
Hi,
I need help to sort string using awk. I don't want to use sed or perl as I want to add this functionality in my existing awk script
Basically I have a variable in AWK which is string with comma separated value. I want to sort that string before using that variable in further processing
for... (10 Replies)
how can i sort the table based on first row? thanks in advance
input
name d b c a
l l1 l2 l3 l4
l1 1 2 3 4
l2 2 2 2 1
l3 1 1 2 2ouput
name a b c d
l1 l4 ... (4 Replies)
Discussion started by: quincyjones
4 Replies
LEARN ABOUT DEBIAN
sc_attach
SC_ATTACH(1) BSD General Commands Manual SC_ATTACH(1)NAME
sc_attach -- simple scamper driver.
SYNOPSIS
sc_attach [-?v] [-i infile] [-o outfile] [-p port]
DESCRIPTION
The sc_attach utility provides the ability to connect to a running scamper(1) instance, have a set of commands defined in a file be executed,
and the output be written into a single file, in warts format. The options are as follows:
-? prints a list of command line options and a synopsis of each.
-i infile
specifies the name of the input file which consists of a sequence of scamper(1) commands, one per line. If '-' is specified, com-
mands are read from stdin.
-o outfile
specifies the name of the output file to be written. The output file will use the warts format. If '-' is specified, output will be
sent to stdout.
-p port
specifies the port on the local host where scamper(1) is accepting control socket connections.
-v prints the current revision of sc_attach and exits.
EXAMPLE
Given a set of commands in a file named infile.txt:
tbit -M 1280 -u 'http://www.example.com/' 2620:0:2d0:200::10
trace -P udp-paris -M 192.0.2.1
ping -P icmp-echo 192.0.32.10
and a scamper(1) daemon listening on port 31337, then these commands can be executed using
sc_attach -i infile.txt -o outfile.warts -p 31337
SEE ALSO scamper(1), sc_wartsdump(1), sc_warts2text(1)AUTHORS
sc_attach is written by Matthew Luckie <mjl@luckie.org.nz>.
BSD October 15, 2010 BSD