what will this do $cat > file.c ?(file.c is a file in
current directory)
Answer Posted / suvarna
cat >file.c -- wait for input data....
If we type something and press ctrl+d, whatever we typed
would be saved to file.c
else if we press ctrl+c, the file remains unchanged.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Why is shebang used?
What do chmod, chown, chgrp commands do?
What is the difference between grep and grep?
What is a command and examples?
What is awk used for?
Which command is used to copy files?
What does this command do? Cat food 1 > kitty
What does the command ' $who | sort –logfile > newfile' do?
Can you explain a little bit about command substitution?
What is grep in bash?
What does grep v grep do?
What is rmdir command?
Explain the steps that a shell follows while processing a command.
Is ‘du’ a command? If so, what is its use?
What is command substitution?