Search Results

Search: Posts Made By: cvsanthosh
3,098
Posted By methyl
The error is coming from the superflous /dev/null...
The error is coming from the superflous /dev/null and the extra punctuation.

The loop would be much more robust with while instead of for:
find "${D1_DIR}/${D1_NAME}" -name "*\.${FILE_DIR}"...
3,098
Posted By pravin27
Remove the below part from find command and run ...
Remove the below part from find command and run
/dev/null {} \;
13,797
Posted By guruprasadpr
Oops. Just noticed your closing EOF. Closing EOF...
Oops. Just noticed your closing EOF. Closing EOF should be at the beginning of the line:

#!/bin/ksh
function ftp_files
{
ftp -n ${D2_SRVR} <<EOF
quote user ${D2_UID}
quote pass ${D2_PWD}
...
8,218
Posted By Scrutinizer
Use double quotes instead of single quotes. This...
Use double quotes instead of single quotes. This should work as long as $x does not contain forward slashes. This script will replace every string1 on every line in file123 with the first line of...
8,218
Posted By zaxxon
No need for the cats and use double quotes or...
No need for the cats and use double quotes or additions single quotes to persuade the shell to substitute your variable:

while read x
do
sed -e 's/string1/'$x'/g' file123
done <...
Showing results 1 to 5 of 5

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