🌚
Size: a a a
ПК
echo -e "foo bar 01:01:01 baz\nfoo\n10:00:10" | sed -r 's/(.*)([0-9]{2}):([0-9]{2}):([0-9]{2})(.*)/echo \1$((\2*3600+\3*60+\4))\5/e'
ПК
ПК
M
echo 00:11:22:33:44:55 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'
почему
ты ошибся? Да потому что ты при гуглении скопировал регулярку не из ответов а из самого вопроса)))∀
🌚
echo 00:11:22:33:44:55 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'
почему
ты ошибся? Да потому что ты при гуглении скопировал регулярку не из ответов а из самого вопроса)))🌚
M
printf "foo bar 5:0:3 baz\nfoo\n01:5:3\n" | awk '{ match($0, /([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})/, hms); hh=hms[1]; mm=hms[2]; ss=hms[3];} $0 sub(/(([0-9]{1,2}):){2}([0-9]{1,2})/, (hh*3600)+(mm*60)+ss); { }'
ПК
🌚
Е
[yayguy4618@yaypc ~]$ arduino
Picked up JAVA_TOOL_OPTIONS:
Set log4j store directory /home/yayguy4618/.arduino15
(java:16585): Gtk-WARNING **: 21:12:16.976: Theme parsing error: gtk.css:2:33: Failed to import: Error opening file /home/yayguy4618/.config/gtk-3.0/window_decorations.css: No such file or directory
Gtk-Message: 21:12:17.071: Failed to load module "colorreload-gtk-module"
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by processing.app.linux.GTKLookAndFeelFixer (file:/usr/share/arduino/lib/arduino-core.jar) to field com.sun.java.swing.plaf.gtk.GTKLookAndFeel.styleFactory
WARNING: Please consider reporting this to the maintainers of processing.app.linux.GTKLookAndFeelFixer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
java.lang.NullPointerException
at processing.app.Base.rebuildProgrammerMenu(Base.java:1705)
at processing.app.Base.<init>(Base.java:286)
at processing.app.Base.main(Base.java:150)
DE
[yayguy4618@yaypc ~]$ arduino
Picked up JAVA_TOOL_OPTIONS:
Set log4j store directory /home/yayguy4618/.arduino15
(java:16585): Gtk-WARNING **: 21:12:16.976: Theme parsing error: gtk.css:2:33: Failed to import: Error opening file /home/yayguy4618/.config/gtk-3.0/window_decorations.css: No such file or directory
Gtk-Message: 21:12:17.071: Failed to load module "colorreload-gtk-module"
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by processing.app.linux.GTKLookAndFeelFixer (file:/usr/share/arduino/lib/arduino-core.jar) to field com.sun.java.swing.plaf.gtk.GTKLookAndFeel.styleFactory
WARNING: Please consider reporting this to the maintainers of processing.app.linux.GTKLookAndFeelFixer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
java.lang.NullPointerException
at processing.app.Base.rebuildProgrammerMenu(Base.java:1705)
at processing.app.Base.<init>(Base.java:286)
at processing.app.Base.main(Base.java:150)
Е
VP
Vs