mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[GH-ISSUE #293] How to convert a recording to STDIN commands? #813
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#813
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gregsifr on GitHub (Apr 8, 2018).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/293
How to convert a cast to STDIN commands so that a cast could be converted into a script which could be run?
According to instructions in
README.mda recording can be converted to text usingasciinema cat existing.cast >output.txt. This however records all STDIN/STDOUT/STDERR. How to convert it so that only STDIN is returned?@ku1ik commented on GitHub (Apr 8, 2018):
You can use
--stdinswitch to include stdin stream in recorded asciicast. Then you can run it throughgrep '"i"'to leave only stdin events. Then some awk magic could convert it to a script.@gregsifr commented on GitHub (Apr 9, 2018):
That works great thanks 👍