Skip to content

Conversation

@marbud0
Copy link

@marbud0 marbud0 commented Feb 10, 2021

This makes it possible to more easily script bulk operations for RT by allowing to read from STDIN instead of the tty when STDIN is NOT connected to a tty.

For example, this now works:
rt ls -t user -i | sed 's/user/show user/' | rt
and is aproximately two times faster than
rt ls -t user -i | while read a;do rt show $a;done

This makes it possible to more easily script bulk operations for RT by allowing to read from STDIN instead of the tty when STDIN is NOT connected to a tty.

For example, this now works:
`rt ls -t user  -i | sed 's/user/show user/' | rt`
and is aproximately two times faster than
`rt ls -t user  -i | while read a;do rt show $a;done`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants