Search Results

Search: Posts Made By: perseous
3,087
Posted By krishmaths
I could see a \r carriage return character from...
I could see a \r carriage return character from the data you have posted. Was file2.txt transferred from a windows environment to unix?

If yes, please remove the CRLF (carriage return line feed)...
3,087
Posted By krishmaths
Can you also double check the contents of...
Can you also double check the contents of file2.txt?
3,087
Posted By rajamadhavan
Cant make out whats going wrong. It works on my...
Cant make out whats going wrong. It works on my system. Please double check the contents of file1.

-Raja
3,087
Posted By krishmaths
Can you include set -x at the beginning of the...
Can you include set -x at the beginning of the script and execute? Or execute using sh -x scriptname.sh
3,087
Posted By krishmaths
while read LINE do sed 's/XXXX/'$LINE'/'...
while read LINE
do
sed 's/XXXX/'$LINE'/' file1.txt >>file3.txt
done<file2.txt
cat file3.txt
Showing results 1 to 5 of 5

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