i have data :
I wanna horizontally sort each line start from $6 descending,
with output
i have searching n try some awk script but still failed.
i really appreciate your help
hi,
i have a file having datas like that
./a.txt
12344
12345
12346
12347
.....
.....
...
i want to save this datas to another file like that
./b.txt
12344 12345 12346 12347 ... ... ...
i think awk can make this but how? :) waiting for ur help. (3 Replies)
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)
Need perl or shell script to sort vertical lines to horizontal line in csv format
My file like below
-------------------------
================================================================================
PATH PINKY1000#I1-1-ZENTA1000-2#I7-1-ASON-SBR-UP-943113845 ... (4 Replies)
Hi,
I need some help in getting extracting the specific horizontal and vertical texts in a single line. I am trying to extract few of the parameters from a config file. Your help is appreciated.
Desired Output
----------------
Pool members members ... (4 Replies)
Hi AWK Experts,
Following is the data :
BRH113 DD AA HH CA DD DD AA HH BRH091 A4 A6 AH H7 67 HH J8 9J BRH0991 AA D8 C23 V5 H7 BR2 BRH991 AA HH GG5 BT0 JJ0
I want the output to be alligned with the pattern matching "BRH" inthe line.
The output should be look like:
A]... (4 Replies)
Based on input
ail,UTT,id1_0,COMBO,21,24,21,19,85
al,UTHAST,id1_0,COMBO,342,390,361,361,1454
and awk code as
awk -F, '{ K=0; for(i=NF; i>=(NF-4); i--) { K=K+$i; J=J+$i;} { print K } } END { for ( l in J ) printf("%s ",J); }'
I'm trying to add columns and lines in single line. line... (6 Replies)
hi all..
i have problem, right now i want to processing some data with input like this
BIMAB ACF-0168 QTS-0465 QUA 2013-08-17 14:16:09.34
** ALAR ORX -004 NDORIDUNGGA
(21943) 7745 ABOVE DEFINED
02 00 01 00 00 00 01 00 00 01 03... (12 Replies)
I am trying to change a file that looks like this:
file, announcement,date, server, server01, server02, server06, file04, rec01, rec04, rec03... etc
into a vertical file like this:
file
announcement
date
server
server01
server02
server06
The file does not have to be sorted... (5 Replies)
Discussion started by: newbie2010
5 Replies
LEARN ABOUT NETBSD
usleep
USLEEP(3) BSD Library Functions Manual USLEEP(3)NAME
usleep -- suspend execution for interval of microseconds
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
int
usleep(useconds_t microseconds);
DESCRIPTION
The usleep() function suspends execution of the calling process until either the number of microseconds specified by microseconds have
elapsed or a signal is delivered to the calling process and its action is to invoke a signal catching function or to terminate the process.
The suspension time may be longer than requested due to the scheduling of other activity by the system.
The microseconds argument must be less than 1,000,000. If the value of microseconds is 0, then the call has no effect.
RETURN VALUES
On successful completion, usleep() returns 0. Otherwise, it returns -1 and sets errno to indicate the error.
ERRORS
The usleep() function may fail if:
[EINVAL] The microseconds interval specified 1,000,000 or more microseconds.
SEE ALSO nanosleep(2), sleep(3)STANDARDS
The usleep() function conforms to X/Open Portability Guide Issue 4, Version 2 (``XPG4.2''). It later appeared in the POSIX standard, but in
IEEE Std 1003.1-2004 (``POSIX.1'') it was marked as legacy and the use of nanosleep(2) was recommended instead. The IEEE Std 1003.1-2008
(``POSIX.1'') revision removed usleep() from the specification.
HISTORY
The usleep() function appeared in 4.3BSD.
BSD April 29, 2010 BSD