Search Results

Search: Posts Made By: whitecross
3,352
Posted By whitecross
awk '{for (i=1;i<=NF;i++) {if (tolower($i) in a)...
awk '{for (i=1;i<=NF;i++) {if (tolower($i) in a) {print;break} else {a[tolower($i)]}};delete a}' infile

this is perfect!

this would help me a lot for my database learning in unix.

so it...
3,352
Posted By whitecross
awk '{for (i=1;i<=NF;i++) {if ($i in a)...
awk '{for (i=1;i<=NF;i++) {if ($i in a) {print;break} else {a[$i]}};delete a}' infilewoah! it worked like a charm! now what ima do now is just to educate myself about these codes. thank you very much...
3,352
Posted By whitecross
Duplicate rows in a text file
notes: i am using cygwin and notepad++ only for checking this and my OS is XP.
#!/bin/bash
typeset -i totalvalue=(wc -w /cygdrive/c/cygwinfiles/database.txt)
typeset -i totallines=(wc -l...
2,826
Posted By whitecross
COMPARING COLUMNS IN A TEXT FILE
Hi, Good day.

I currently have this data called database.txt and I would like to check if there are no similar values (all unique) on an entire row considering the whole column data is unique. the...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy