how to separate the even and odd number generated from one
file to two separate file i.e. even numbers in file1.txt and
odd numbers in file2.txt
Answer Posted / jaya prasad
echo "Enter the file name"
read file
awk '$NF % 2 == 0' $file > file1.txt
awk '$NF % 2 != 0' $file > file2.txt
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Write a script to print the first 10 elements of fibonacci series.
What is the default shell of solaris?
What does echo $0 do?
What is a command line shell?
Is bash a shell script?
What is the meaning of $1 in shell script?
What is an inode block?
How do I edit a .sh file?
How to write a function?
What is the use of echo in shell script?
What are the different types of shell scripting?
What is computer cli?
How do I open the shell in cmd?
What are different types of shell?
is this growing field and what is average package in this?