Search Results

Search: Posts Made By: ananthap
10,296
Posted By ananthap
in awk, { if NR % 2 == 0 print $1-ODD ...
in awk,
{
if NR % 2 == 0
print $1-ODD
else
ODD=$1
}

Please try.

OK

Please use code tags. Video tutorial on how to use them...
7,219
Posted By ananthap
#! bin/bash echo "Enter desired file" read...
#! bin/bash
echo "Enter desired file"
read "$file"
if [ ! -f $file ] ; then
touch $file #this will create the file
fi
vi $file

Please use code tags
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy