Search Results

Search: Posts Made By: reignangel2003
2,121
Posted By Scrutinizer
I had not read your last remark properly. -- ...
I had not read your last remark properly. --
Try something like:
awk '
BEGIN {
FS="|"
OFS="\t"
}
{
A[$1]
C[$1,$2]=$3
}
!B[$2]++ {
I[++n]=$2
}
END {
...
6,187
Posted By Aia
awk '{a[NR]=$1;next}; END { for (i=NR; i>0; i--)...
awk '{a[NR]=$1;next}; END { for (i=NR; i>0; i--) {print a[i]}}' file.test | xargs kill -9

You can also use tac | awk
16,022
Posted By radoulov
Remove the prompt and use &1 instead of...
Remove the prompt and use &1 instead of &client_id.
3,325
Posted By CarloM
awk '/client508/ {for (i=0;i<3;i++)...
awk '/client508/ {for (i=0;i<3;i++) {print;getline}}' file
(You may need to use nawk or /usr/xpg4/bin/awk)
1,792
Posted By Jotne
awk '{ sub(/^\)/,"&;") # Replace ")" with...
awk '{
sub(/^\)/,"&;") # Replace ")" with ");"
s=($0~/^[A-Z]/&& a~/^[A-Z]/ && !/^desc/)?",":"" # IF this line and previous line start with "A-Z" and not "desc" set "s" to "," else set it to...
2,183
Posted By Yoda
awk '/^ARTPRD01 =/,/SERVICE_NAME/' tnsnames.dat
awk '/^ARTPRD01 =/,/SERVICE_NAME/' tnsnames.dat
Showing results 1 to 6 of 6

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