Sign in
apache
/
groovy
/
8a847fcda96a3429f335ecd60a635c33f93bffe6
/
.
/
groovy
/
modules
/
process
/
src
/
test_scripts
/
each_line.groovy
blob: f1105e6861eef0a67201a149d387e9e602ecfe46 [
file
] [
log
] [
blame
]
gsh
=
new
com
.
baulsupp
.
groovy
.
groosh
.
Groosh
();
cat
=
gsh
.
cat
(
'test_scripts/blah.txt'
);
lines
=
gsh
.
each_line
{
line
,
w
|
w
.
write
(
"*"
);
w
.
write
(
line
);
w
.
write
(
"\n"
);
};
cat
.
pipeTo
(
lines
);
lines
.
toStdOut
();