Search Results

Search: Posts Made By: YYnewbee14
3,049
Posted By YYnewbee14
When I changed the script as below: exec...
When I changed the script as below:

exec `"sed -n '$BEGIN_FROM,$LAST_TO w $OUT_FILE' $SRC_FILE_PTH"`

it gave return back the values right with the correct format of sed command, but could not...
3,049
Posted By YYnewbee14
when I printed ==> print "sed -n...
when I printed ==> print "sed -n '$BEGIN_FROM,$LAST_TO w $OUT_FILE' $SRC_FILE_PTH" following is the output

+ print sed -n '10,14 w /opt/TgtFiles/test.txt_split4' /opt/TgtFiles/test.txt

command...
3,049
Posted By YYnewbee14
The script is running without error, but no...
The script is running without error, but no outfile generated. Below is the printed output of the command...

sed -n "${BEGIN_FROM},${LAST_TO} w ${OUT_FILE}" "${SRC_FILE_PTH}" ==> sed -n 1,3 w...
3,049
Posted By YYnewbee14
Help !!! need on sed Command
want to write certain number of lines to the outfile, when I tried to execute the following command in unix script, got error out.

$SRC_FILE variable is not returning value to the sed command,...
Showing results 1 to 4 of 4

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