Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
5 years ago[32] Set value from other variable / assignment
The simple use case is to copy one value somewhere else.
Let's say I have an Item as follow
MyItem
- oldSection
- a_var=value
For the basic "copy.paste" use case, I would ...
Former Member
5 years agoHey @ebreton,
The "copy-paste" scenario you mention can be achieved in the following way:
shell
op item edit MyItem "newSection.my_var[Text]=$(op item get MyItem --field a_var)"
Does this work for you?