10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi
I wanted to know if there is an option in grep command to show the number of results (not the number of lines of findings).
Thanks (14 Replies)
Discussion started by: abdossamad2003
14 Replies
2. Shell Programming and Scripting
Hi,
I have date format like 09/08/115(Format : date +%m%d%1y) and i want to differentiate this date with current date and output of difference will compare with a number like
if ; then
commands
else
exit
fi
how can i do that (2 Replies)
Discussion started by: charanarjun
2 Replies
3. Shell Programming and Scripting
Hi all,
I have a requirement to calculate the difference of number of days of time stamp of a file and system date and if the difference is greater than 15 days it should prompt as previous month file otherwise current month file.
Below is the code i used and it is working fine till now. (You... (2 Replies)
Discussion started by: Ravindra Swan
2 Replies
4. Shell Programming and Scripting
Hi Power User,
I'm trying to compute this kind of text file format:
file1:
jakarta 100 150
jakarta 170 210
beijing 220 250
beijing 260 280
beijing 290 320
new_york 330 350
new_york 370 420
tokyo 430 470
tokyo 480 ... (2 Replies)
Discussion started by: anjas
2 Replies
5. Shell Programming and Scripting
Hello Guys,
I have created function which is as follow:
tail -f filename |grep "Key word"
output from this command
19-11-2011 21:09:15,234 - INFO Numbement - error number:result = :11
19-11-2011 21:09:15,286 - INFO Numbement - error number:result = :11
19-11-2011 21:09:15,523 - INFO... (5 Replies)
Discussion started by: ooilinlove
5 Replies
6. AIX
I'm investigating an issue where rsync's to an AIX server will sometimes fail. I suspect the problem might be due to the number of simultaneous SSH connections being made to the host dropping the rsync attempts. I'd like to view the number of open ssh connections. The who command will list logged... (1 Reply)
Discussion started by: indiana_tas
1 Replies
7. Shell Programming and Scripting
I have two files and I need to know the difference between each line. This will extend to thousand lines and manual works is really not really an option.
sample:
First File Second File
allan entry1 entry2 entry3 allan entry1 entry3
bob entry1... (10 Replies)
Discussion started by: The One
10 Replies
8. Shell Programming and Scripting
Hello all
Im trying to write one liner that will show me results only if the result of the expression is greater then 0
For example:
I do :
find . -name "*.dsp" | xargs grep -c SecurityHandler
the result are :
./foo/blah/a.dsp:0
./foo/blah1/b.dsp:1
./foo/blah2/c.dsp:2... (1 Reply)
Discussion started by: umen
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I need a command that would let ls show number of lines in each file rather than file size in KBs.
I tried using wc -l as a source of input to ls but I found a problem cutting the file name since wc generates a space delimited list.
Any suggestions?
Thanks.
GmMike. (1 Reply)
Discussion started by: GMMike
1 Replies
10. UNIX for Dummies Questions & Answers
Hi all
How can I make Emacs to show the line numbers at the left or right as a default. This might help me to quickly jump to a given line.
Thanks
SS (9 Replies)
Discussion started by: saurya_s
9 Replies