Search Results

Search: Posts Made By: sbk785
783
Posted By sbk785
Determine the exist status
Hi,

i am a novice in scrpting and need your help on the following. i have a script that checks if a file exists:
if [ -f $path/file1 ] ; then
echo " Files exists"
else
echo " file not found"...
1,838
Posted By sbk785
hi Don here it is: while read -r line...
hi Don

here it is:

while read -r line
do
for i in $(cat test2)
do
if [ $line != $i ];
then
echo " The different value us $line"
fi
done
done < test1

i do not get the correct...
1,838
Posted By sbk785
thanks for your reply but for some reason my...
thanks for your reply but for some reason my while read command doesnt seem to work ... not sure where i am getting it wrong
1,838
Posted By sbk785
While loop for comparison
hi all,
i have two files:
test1 contains : one two three four five (on separate lines)
test2 contains: one ten nine (on separate lines)

I want to compare two files, test1 against test2. if...
Showing results 1 to 4 of 4

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