10-18-2011
nice code and clear. Thanks a lot!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am trying to parse a file that resembles the last three groupings into something looking like the first two lines. I've fiddled with sed and awk a bit, but can't get anything to work properly. I need them separated by some delimiter. The file is some 23,000 lines of the stuff....
... (9 Replies)
Discussion started by: dkozel
9 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a small requirement where i need to sum up a column in a text file.
Input file
66ab 000000 534385 -00000106350.00
66cd 000000 534485 -00013364511.00
66ad 000000 534485 -00000426548.00
672a 000000 534485 000000650339.82... (5 Replies)
Discussion started by: pssandeep
5 Replies
3. Shell Programming and Scripting
Dear all,
I have a file in this format (like a matrix)
- A B C .. X
A 1 4 2 .. 2
B 2 6 4 .. 8
C 3 5 5 .. 4
. . . ... .
X . . ... .
and want to convert it into a file with this format:
A A = 1
A B = 4
A C = 2
...
A X = 2
B A = 2
B B = 6
etc (2 Replies)
Discussion started by: TheTransporter
2 Replies
4. UNIX for Dummies Questions & Answers
Hello all,
I have a file which is tab separated like that:
PHE_205_A TIP_127_W ARG_150_B
MET_1150_A TIP_12_W VAL_11_B
GLU_60_A TIP_130_W ARG_143_B
LEU_1033_A TIP_203_W ARG_14_B
SER_1092_A TIP_203_W
THR_1090_A TIP_203_W
SER_1092_A TIP_25_W ... (6 Replies)
Discussion started by: TheTransporter
6 Replies
5. Shell Programming and Scripting
Hi,
I have created a tab separated file from the following input file.
ADDRESS1 CITY STATE POSTAL COUNTRY LON LAT
32 PRINZREGENTENSTRASSE ROSENHEIM BAYERN 83022 DEU 1212182 4785699
263 VIA DANTE ALIGHIERI BARI PUGLIA 70122 ITA 1686233 4112154
30 VIA MILANO ... (1 Reply)
Discussion started by: ramky79
1 Replies
6. Shell Programming and Scripting
Hi guys,
here https://www.unix.com/shell-programming-scripting/193043-3-column-csv-correlation-matrix-awk-perl.html I found awk script converting
awk '{
OFS = ";"
if (t) {
if (l != $1)
t = t OFS $1
} else t = OFS $1
x = x ? x OFS $NF : $NF
l = $1
}... (2 Replies)
Discussion started by: grincz
2 Replies
7. Shell Programming and Scripting
Hi,
I have a tab separated. I want to replace all the "&" in 8th column of the file with "and" .I am trying with
awk -F, -vOFS=\\t '{$8=($8=="&")?"and":$8}1' test> test1.txt
My file is abc def ghk hjk lkm hgb jkluy acvf & bhj hihuhu fgg
me mine he her go went has has & had hgf hgy
... (1 Reply)
Discussion started by: jagdishrout
1 Replies
8. Shell Programming and Scripting
Hi all,
I have a 3 columns input file like this:
CPLX9PC-4943 CPLX9PC-4943 1
CPLX9PC-4943 CpxID123 0
CPLX9PC-4943 CpxID126 0
CPLX9PC-4943 CPLX9PC-5763 0.5
CPLX9PC-4943 CpxID13 0
CPLX9PC-4943 CPLX9PC-6163 0
CPLX9PC-4943 CPLX9PC-6164 0.04... (7 Replies)
Discussion started by: AshwaniSharma09
7 Replies
9. Shell Programming and Scripting
Hey Masters,
Here is my input:
fragmentID chromosome start end HEL25E TRIP1
r5GATC2L00037 chr2L 5301 6026 0.03 0.036
r5GATC2L00038 chr2L 6023 6882 -0.025 -0.041
r5GATC2L00040 chr2R 6921 7695 -0.031 0.005
r5GATC2L00042 chr2R 7715 8554 -0.006 -0.024
r5GATC2L00043 chr3L 8551 8798 0.042 0... (4 Replies)
Discussion started by: @man
4 Replies
10. Shell Programming and Scripting
Hi all,
I'm trying to read a tab separated file and apply some functions on each column. I have an issue with empty column.
Exemple:
$ #cat with the sed to allow you to see my tab
$ cat foo.txt| sed 's/\t/;/g'
a;1;x
b;;yI wanted to something like that:
while read col1 col2 col3
do
... (4 Replies)
Discussion started by: maturix
4 Replies
NICE(1) BSD General Commands Manual NICE(1)
NAME
nice -- execute a utility with an altered scheduling priority
SYNOPSIS
nice [-n increment] utility [argument ...]
DESCRIPTION
nice runs utility at an altered scheduling priority. If an increment is given, it is used; otherwise an increment of 10 is assumed. The
super-user can run utilities with priorities higher than normal by using a negative increment. The priority can be adjusted over a range of
-20 (the highest) to 20 (the lowest). A priority of 19 or 20 will prevent a process from taking any cycles from others at nice 0 or better.
Available options:
-n increment
A positive or negative decimal integer used to modify the system scheduling priority of utility.
EXIT STATUS
The nice utility exits with one of the following values:
1-125 An error occurred in the nice utility.
126 The utility was found but could not be invoked.
127 The utility could not be found.
Otherwise, the exit status of nice will be that of utility.
COMPATIBILITY
The historic -increment option has been deprecated but is still supported in this implementation.
SEE ALSO
csh(1), getpriority(2), setpriority(2), renice(8)
STANDARDS
The nice utility conforms to IEEE Std 1003.2-1992 (``POSIX.2'').
HISTORY
A nice utility appeared in Version 6 AT&T UNIX.
BUGS
nice is built into csh(1) with a slightly different syntax than described here. The form 'nice +10' nices to positive nice, and 'nice -10'
can be used by the super-user to give a process more of the processor.
BSD
June 6, 1993 BSD