Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: vijay_rajni
2,126
Posted By bartus11
Try: awk 'BEGIN{"date +%d/%m/%y"|getline...
Try: awk 'BEGIN{"date +%d/%m/%y"|getline d}NR==1{$3=$3" today"}NR==2{$3=$3" =="}NR>2{$3=$3" "d}1' file
1,194
Posted By Yoda
Here is a brief explanation: awk ' #...
Here is a brief explanation:
awk '
# Skip first two records of input file
NR > 2 {
# Set variable V = $0 (current record)
V = $0
...
1,194
Posted By Yoda
Change print A[T[n]], T[n], "IS DUPLICATE OF...
Change
print A[T[n]], T[n], "IS DUPLICATE OF \"" M[T[n]], T[n] "\""
To
print T[1], T[n], "IS DUPLICATE OF \"" M[T[n]], T[n] "\""
1,449
Posted By Yoda
awk ' NR > 2 { ...
awk '
NR > 2 { # Skip first 2 lines
n = $1 # Set n = 1st field
# Substitute every...
Showing results 1 to 4 of 4

 

Featured Tech Videos

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