pveselov

Untitled

Aug 6th, 2024
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. [vps@druid]/tmp/tmp$ touch 1.rs 2.rs
  2. [vps@druid]/tmp/tmp$ find . -type f -name "*.rs" -printf "%P\n" | sed "s/\.rs//" | sort | awk '{print;print}'|xargs printf '[[example]]\nname = "%s"\nrequired-features = ["%s"]\n\n'
  3. [[example]]
  4. name = "1"
  5. required-features = ["1"]
  6.  
  7. [[example]]
  8. name = "2"
  9. required-features = ["2"]
  10.  
Advertisement
Add Comment
Please, Sign In to add comment