In [1]:
!echo a > a.txt
!echo b > b.txt
!echo c > c.txt
!echo d > d.txt
In [2]:
%preview result.txt
input: 'a.txt', 'b.txt', 'c.txt', 'd.txt', group_by=1
output: 'result.txt'
sh: expand=True
cat {_input} > {_output}
print(f'output = {_output}, step output = {step_output}')
In [3]:
input: 'a.txt', 'b.txt', 'c.txt', 'd.txt', group_by=1
output: f'{_input:n}.bak'
sh: expand=True
cat {_input} > {_output}
print(f'output = {_output}, step output = {step_output}')
In [4]:
%run
[10]
input: 'a.txt', 'b.txt', 'c.txt', 'd.txt', group_by=1
output: f'{_input:n}.bak'
stop_if(_index==2, 'Skip group 3')
sh: expand=True
cat {_input} > {_output}
print(f'output = {_output}, step output = {step_output}')
[20]
print('Step input: (output of previous step)')
print(step_input)
In [ ]: