I want to run the unix command in a fortran code
echo trim(val_fgsize) | awk '{split($1, a, "/"); print a[1]}'
I am trying like this but getting problems
s='echo ' // trim(val_fgsize) // '| awk '{split($1, a, "/"); print a[1]}''
call system(s)
---------- Post updated at 05:15 PM ---------- Previous update was at 04:58 PM ----------
Done it
s='echo ' // trim(val_fgsize) // ' | awk ' // '''{split($1, a, "/"); print a[1]}'''
call system(s)
---------- Post updated at 06:21 PM ---------- Previous update was at 05:15 PM ----------
I am having a problem putting the output from call system(s) to be stored in a character string