1

Linux - Feed a command input with a file and delete the file while the command is running

view story
linux-howto

http://stackoverflow.com – Could some one tell me a single line command to feed my cmd input from a file and delete the same file while the command is still running? EDIT: By single line command I meant, performing this entire action in one command. This behavior has got to do with executing processes and commands simultaneously. Hence I would want to see what happens when the command line input is fed with a file and in the same command using the concept of simultaneous process execution (Read foreground and background) delete the file while the cmd input is still reading it I tried $ cat dummy_file.txt | rm -i rm: (HowTos)