10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am writing a shell script to perform few health checks of the system, where I need to delete the previous line in the text file after pattern match using sed (or) awk.
Could you please help me out on this?
<td style=color:green align=center>
</tr>... (6 Replies)
Discussion started by: Nagaraj R
2. Shell Programming and Scripting
My command to delete line
while read NUM
awk -F"\|" '$2 !~ /`"$NUM"`/' file >file.back
mv file.back file
done<deletelines (3 Replies)
Discussion started by: Roozo
3. Shell Programming and Scripting
Dear Shell experts,
I have 2 files with structure:
File 1: ID and count
And 2nd file:
protein_gi GeneID... (11 Replies)
Discussion started by: smitra
4. UNIX for Dummies Questions & Answers
Here is my file:
I want to pull all lines that begin with '700' only if columns 11-12 are '79'.
My code so far only pulls the '79', not the whole line:
grep ^700 file1 | cut -c 11,12 |... (7 Replies)
Discussion started by: Scottie1954
5. UNIX for Advanced & Expert Users
I have following line and text file
line =08 * * 3 /data/reports/bin/xyz.ksh -o customreports.com -f abc.sql -m xyz.com -c -g
08 * * 3 /data/reports/bin/xyz.ksh -o customreports.com -f abc.sql -m xyz.com -c -g
06 * * 3 /data/reports/bin/xyz.ksh -o... (3 Replies)
Discussion started by: anyera
6. Shell Programming and Scripting
How to delete the last line if is match the below string else no action...
String checking "END OF FILE. ROW COUNT: "
END OF... (2 Replies)
Discussion started by: bmk
7. Shell Programming and Scripting
I've list of LDAP records in this format:
cmmac:... (4 Replies)
Discussion started by: tomas.polak
8. Shell Programming and Scripting
I need some help in writing a small script using Awk.
My input file has following deatils
8209964,8209964,8367098,8367098 ... (8 Replies)
Discussion started by: pistachio
9. Shell Programming and Scripting
i am parsing a file, in that searching for lines those contains "$threadNo.Received message:" , if that line contains the required fields write them into a separate file other wise ignore them.
i am using the following code,but it is printing all the lines , i dont want to rpint , please help... (3 Replies)
Discussion started by: Satyak
10. Shell Programming and Scripting
I am searching a dhcpd.conf to find the hardware ethernet match, then once the match is found delete just the line above it. For example:
hardware ethernet 00:00:00:00:00:00;
fixed address 192.168.1.100;
}... (3 Replies)
Discussion started by: cstovall