Skip to content

Commit

Permalink
read while ~~ do ~~ done << txt
Browse files Browse the repository at this point in the history
  • Loading branch information
RE committed Dec 30, 2023
1 parent 92c89ba commit b56f44e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
dir=~
[ "$1" != "" ] && dir="$1"

cd $dir/ros2_ws
cd $dir/ros2_ws/src/mypkg
colcon build
source $dir/.bashrc

Expand All @@ -14,7 +14,6 @@ while read INPUT
do
(ros2 launch mypkg talk_listen.launch.py < $INPUT ) >/tmp/mypkg.log
done < ./inputs.txt
# > /tmp/mypkg.log

cat /tmp/mypkg.log |
grep 'Listen: 1'

0 comments on commit b56f44e

Please sign in to comment.