10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have 133 .txt files in a directory that I am combining into 1 file. The problem is when I use awk or cat to combine the files I get out put like this:
output
85 138662360 KCNT1
86 138662962 KCNT1
82 138657053 KCNT1
83 138657635 KCNT1
95 138646881 KCNT1... (12 Replies)
Discussion started by: cmccabe
12 Replies
2. Shell Programming and Scripting
have written a combined sed+awk to perform a lookup operation which works but looking to enhance it.
looking to match a record using any of the comma separated values + return selected fields from the record - including the field header. so:
cat foo
make,model,engine,trim,value... (6 Replies)
Discussion started by: jack.bauer
6 Replies
3. UNIX for Dummies Questions & Answers
Hello,
i need to search one word (snp1) from many files and copy the content of the columns of this word in new file.
example:
file 1:
SNP BP CHR P
snp1 1 3 0.01
snp2 2 2 0.05
.
.
file 2:
SNP BP CHR P
snp1 1 3 0.06
snp2 2 2 0.3
output... (6 Replies)
Discussion started by: biopsy
6 Replies
4. Shell Programming and Scripting
I have two CSV lines, I.e.:
Line 1 = the,quick,brown,fox, ,jumps, ,the, ,dog
Line 2 = the,quick,brown,fox, , ,over, ,lazy,dog
Literally, columns missing from line 1 exist in line 2.
Any suggestions on quick ways to combined these two lines into one line:
New line:... (2 Replies)
Discussion started by: msf004
2 Replies
5. UNIX for Dummies Questions & Answers
Dea all,
I have a question. I have a column of numbers with scientific notion and decimal combined data. I want to print it only if the number <0.05 using awk. however the very small numbers with scientific notion is not selected. Do any one know how to solve it? Thanks! example as below: ... (4 Replies)
Discussion started by: forevertl
4 Replies
6. Shell Programming and Scripting
Hello
So I understand when I do the following
used_ports=$(netstat -nat |cut -d : -f 2 |cut -d ' ' -f 1)
that the output will look like this
Active Proto 5298 22 631 55012 56093 39672 43196 56619 39677 36103
38453 41413 56137 37902 41410 41414 43195 38426 49253 38420 34273 ... (1 Reply)
Discussion started by: brsett
1 Replies
7. Shell Programming and Scripting
nawk -F "|" 'FNR==NR {a=$2 OFS $3 OFS $4 OFS $5 OFS $6;next}\
{if ($5 in a)print $1,"test",$5,a, $2,$3,$4 OFS OFS OFS OFS OFS OFS OFS OFS $2-$3-$4 ; \
else print $1,"Database",$5 OFS OFS OFS OFS OFS OFS $2,$3,$4 OFS OFS OFS OFS OFS OFS OFS OFS $2-$3-$4 }' OFS="|" \
file1 file2 > file3
This... (5 Replies)
Discussion started by: pinnacle
5 Replies
8. Shell Programming and Scripting
hello there unix programmer
i have problem in combining file and their values..
here it is.
in my file1 i have values
1010<tab>10<tab>11<tab>13
1011<tab>11<tab>12<tab>14
in my file2 i have values
1010<tab>22<tab>23<tab>24
1011<tab>23<tab>24<tab>25
my desired output in shell... (7 Replies)
Discussion started by: jantzen16
7 Replies
9. Shell Programming and Scripting
I have two files and I need to combine their values
example:
i have file1 and file2
in file1
1019 40 50
1119 55 62
in file2
1019 33 10
1119 12 44
desired output should be:
file3
1019:40:33:50:10
1119:55:12:62:44 (5 Replies)
Discussion started by: jantzen16
5 Replies
10. Shell Programming and Scripting
I am trying to change permission for all subdirectories and files inside folder1 so this is what i came with after many seraches on the internet. man find and man chmod mirc and few articles.
find .public_html/folder1 -print0 | xargs -0 chmod 777
what's wrong with this command?
it is FTP... (33 Replies)
Discussion started by: smoother
33 Replies