Search Results

Search: Posts Made By: rmohanty
4,709
Posted By rmohanty
Hi, You can use the below script. ...
Hi,

You can use the below script.


y=1
while read line
do
fld1=`echo $line |cut -d' ' -f1|tr -d ' '`
if [ "$fld1" = 'Data' ]; then
fld2=`echo $line|cut -d'"' -f2|cut -d'#' -f1|tr -d...
8,039
Posted By rmohanty
Hi, You could try this : y=1 while read...
Hi,

You could try this :
y=1
while read line
do
r=`sed -n "$y p" file2`
sed -i "$y s/$/$r/" file1
y=`expr $y + 1`
done < file1

I used below input :
File 1 : ...
Showing results 1 to 2 of 2

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