Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    15

    Unanswered: Command inside parameter

    Hi colleagues !

    Quick question:
    How can I run a command inside a parameter ?

    I want to use dd and the following formula in the count parameter :
    df -m . |awk '{s+=$2} END {print s}'

    like:

    dd if=/dev/zero of=dummy.file bs=1m count= df -m . |awk '{s+=$2} END {print s}'

    Thank you for all support !

  2. #2
    Join Date
    Jan 2004
    Posts
    15
    Already did

    dd if=/dev/zero of=dummy.file bs=1m count= `df -m . |awk '{s+=$2} END {print s}' `

    Thank you all !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •