Search Results

Search: Posts Made By: baskivs
4,408
Posted By Corona688
Are they in the same order? Will they ever have...
Are they in the same order? Will they ever have different numbers of lines? A simple solution for line-matching might just be:

diff a.csv b.csv | grep '^> ' | sed 's/> //' > diff-file
2,080
Posted By kumaran_5555
This works, make sure you have two columns after...
This works, make sure you have two columns after pic to avoid bad results,


awk '{for(i=1;i<=NF;i++){if($i=="PIC"){print $(i-1) $(i+1) $(i+2)}}} ' test.txt
1,659
Posted By yazu
#!/bin/awk -f { printf "%s\t ", $1 ...
#!/bin/awk -f

{
printf "%s\t ", $1
if (substr($2, 1, 1) == "X") {
if (substr($2, 2, 1) == "(") {
printf "VARCHAR\t%d\n", int(substr($2, 3, length($2) - 4))
...
Showing results 1 to 3 of 3

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