You can do it with eval. It may be ugly, but so is having to make a shell script for this. Plus, it’s all on one line.
For example
find -type f -exec bash -c "eval md5sum {} > {}.sum " \;
More Related Contents:
- grep lines that contain 1 character followed by another character
- When should I wrap quotes around a shell variable?
- How to convert DOS/Windows newline (CRLF) to Unix newline (LF) in a Bash script
- How to cat a file containing code?
- What’s the magic of “-” (a dash) in command-line parameters?
- What is double dot(..) and single dot(.) in Linux?
- What does the number in parentheses shown after Unix command names in manpages mean?
- How to instruct cron to execute a job every second week?
- How do I use the lines of a file as arguments of a command?
- How can I programmatically create a new cron job?
- How to concatenate multiple lines of output to one line?
- How to split CSV files as per number of rows specified?
- Using the passwd command from within a shell script
- GROUP BY/SUM from shell
- How to sort strings that contain a common prefix and suffix numerically from Bash?
- linux: kill background task
- In Linux, how to tell how much memory processes are using?
- Why can’t I use Unix Nohup with Bash For-loop?
- How does vi restore terminal content after quitting it?
- How to print third column to last column?
- Linux/Unix command to determine if process is running?
- Monitor Directory for Changes
- grep without showing path/file:line
- Is there a way to make mv create the directory to be moved to if it doesn’t exist?
- How to attach a file using mail command on Linux? [duplicate]
- understanding and decoding the file mode value from stat function output
- Need to remove the count from the output when using “uniq -c” command
- Creating temporary files in bash
- How do you run a script on login in *nix?
- What is the difference between source and export?