Search Results

Search: Posts Made By: Benou
6,936
Posted By rangarasan
BASH
Hi,

Try this one,


#! /usr/bin/bash
dir=`pwd`;
file=`echo -ne "$dir/file"`;
file1=`echo -ne "$dir/file1"`;
res=`fgrep -f $file -c $file1`;
if [ $res == 0 ];
then
echo "Pattern Not...
1,841
Posted By CarloM
Lines which don't match the pattern (MARK or GET)...
Lines which don't match the pattern (MARK or GET) are just discarded, but all lines are using the same separators for input - double quote and comma. So the string ," in is a blank field (or two, if...
Showing results 1 to 2 of 2

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