File: tbashexecute.c

package info (click to toggle)
sollya 7.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 13,864 kB
  • sloc: ansic: 117,441; yacc: 8,822; lex: 2,419; makefile: 870; cpp: 76
file content (16 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <sollya.h>

int main(void) {
  sollya_obj_t bashCommand;

  sollya_lib_init();

  bashCommand = sollya_lib_string("echo \"Hallo Welt!\" | sed -e 's/a/e/g;s/elt/orld/g;' | tr 'a-z' 'A-Z'");

  sollya_lib_bashexecute(bashCommand);

  sollya_lib_clear_obj(bashCommand);
  
  sollya_lib_close();
  return 0;
}