10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
What is an awk command to print only fields with a number in it??
Input file.......
S,S,S,S,S,S,S,S,S
001S,S,S,S,S,S,S,S,S
00219S,23S,24S,43S,47S,S,S,S,S
00319S,10S,23S,41S,43S,47S,S,S,S
00423S,41S,43S,46S,47S,S,S,S,S
00510S,23S,24S,43S,46S,S,S,S,S
00610S,23S,43S,46S,47S,S,S,S,S... (2 Replies)
Discussion started by: garethsays
2 Replies
2. Shell Programming and Scripting
HI,
I have two files and contains many Fields or columns with | (pipe) delimitor, wanted to compare both the files and get only unmatched perticular fields number.
ex:
first.txt
1 | 2 | 3
111 |abc| 230
hbc | bb2 | cs
second.txt
1 | 2 | 3
111 |abc |230
abn | bb2 | fp
Here the... (7 Replies)
Discussion started by: prawinmca
7 Replies
3. Shell Programming and Scripting
HI,
I have two files and contains many Fields or columns with | (pipe) delimitor, wanted to compare both the files and get only unmatched perticular fields number.
ex:
first.txt
111 |abc| 230| hbc | bb2 | cs
second.txt
111 |abc |230 |abn | bb2 | fp
Here the different data in two... (2 Replies)
Discussion started by: prawinmca
2 Replies
4. Shell Programming and Scripting
Hello,
I have two files to compare these contain some contents like this :
FIle 1 :
A
B
C
E
File 2 has some new entries and the old entries are in some different ordre
File 2 could be like this :
C
E
A
B
G
I (4 Replies)
Discussion started by: ajayram
4 Replies
5. UNIX for Dummies Questions & Answers
Hello Friends,
Can anyone help me for the below requirement.
I am having a file called Input.txt.
My requirement is first check the count that is wc -l input.txt
If the result of the wc -l Input.txt is less than 10 then don't split the Input.txt file. Where as if Input.txt >= 10 the split... (12 Replies)
Discussion started by: malaya kumar
12 Replies
6. Shell Programming and Scripting
14:15:00-
abcdefghijkl.
14:30:00-
abcdefghijkl.
14:35:00-
abcdefghijkl.
123456789.
123456789.
14:45:00-
abcdefghijkl.
14:50:00-
abcdefghijkl.
123456789.
15:30:00-abcdefghijkl. (3 Replies)
Discussion started by: dev_shivv
3 Replies
7. Solaris
For example a log file looks like below-
13:30:00-
abcdefghijklhjghjghjhskj.
abcdefghijkl.
14:15:00-
abcdefghijkl.
14:30:00-
abcdefghijkl.
14:35:00-
abcdefghijkl.
123456789.
123456789.
14:45:00-
abcdefghijkl. (0 Replies)
Discussion started by: dev_shivv
0 Replies
8. Shell Programming and Scripting
Hi,
When I run the diff command using diff -yt file1 file2, I get the output in which original lines are truncated.
I tried using -W switch with diff. However, that does not produce exact output as I want. Is it possible to show entire line of file1 and file2 in diff command's output?
... (8 Replies)
Discussion started by: jal_capri
8 Replies
9. Shell Programming and Scripting
hi all,
from a shell (ksh) script, i am doing a 'grep'. how do i find out the number of lines returned from that 'grep' command ??
thanks in advance. (4 Replies)
Discussion started by: cesarNZ
4 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
I am new to Unix.
I have written pl/sql script to be run in Unix.
I have used Merge statement and subsequently would like to know the number of rows updated or inserted.
Any suggestions in this regard would be great
Thanks in advance
Kushal (0 Replies)
Discussion started by: kushal_cog
0 Replies