Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: perseous
1,835
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)...
1,835
Posted By krishmaths
Can you also double check the contents of...
Can you also double check the contents of file2.txt?
1,835
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
1,835
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
1,835
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

 

Featured Tech Videos

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