2 deleted 8 characters in body
source | link
#!/bin/bash

var=$(cut -d" " -f 1 list1.txtfile1)
var1=$(cut -d" " -f 1 list2.txtfile2)

if [ "$var" == "$var1" ]
then
echo "columns are matching each other "
else
echo "columns are not matching with each other!"

fi
#!/bin/bash

var=$(cut -d" " -f 1 list1.txt)
var1=$(cut -d" " -f 1 list2.txt)

if [ "$var" == "$var1" ]
then
echo "columns are matching each other "
else
echo "columns are not matching with each other!"

fi
#!/bin/bash

var=$(cut -d" " -f 1 file1)
var1=$(cut -d" " -f 1 file2)

if [ "$var" == "$var1" ]
then
echo "columns are matching each other "
else
echo "columns are not matching with each other!"

fi
    Post Undeleted by user88036
    Post Deleted by user88036
1
source | link

#!/bin/bash

var=$(cut -d" " -f 1 list1.txt)
var1=$(cut -d" " -f 1 list2.txt)

if [ "$var" == "$var1" ]
then
echo "columns are matching each other "
else
echo "columns are not matching with each other!"

fi