9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am writing a script in which I need to gather 2 numbers for 'total' and 'successful'. The goal is to compare the two numbers and if they are not equal, rerun the task until all are successful. I'm thinking the best way will be with awk or sed, but I really don't know where to begin... (8 Replies)
Discussion started by: hburnswell
2. Shell Programming and Scripting
say I have a big list of something like:
I want to remove the numbers of any line that has letters + 1 to 4 numbers
afg10293 (7 Replies)
Discussion started by: Siwon
3. UNIX for Dummies Questions & Answers
I've got two files that each contain a 16-digit number in positions 1-16. The first file has 63,120 entries all sorted numerically. The second file has 142,479 entries, also sorted numerically.
I want to read through each file and output the entries that appear in both. So far I've had no... (13 Replies)
Discussion started by: Scottie1954
4. Shell Programming and Scripting
PFB my requirement:
I have a file (named file1) containing numbers like:
I have another file (nemed file2)where lines containing these numbers(present in file1) are present; Eg:
lppza087; <PERFB >... (6 Replies)
Discussion started by: niladri29
5. UNIX for Dummies Questions & Answers
We used to use the below commands often.
ps -ef|grep bc
ps -ef|grep abc|grep -v grep
Both fairly returns the same result.
For example, the process name is dynamic and we are having the process name in a variable, how we can apply the above trick.
For example "a" is the... (11 Replies)
Discussion started by: pandeesh
I am just curious, not programming anything of my own. I know there are libraries like gmp which does all such things. But I really need to know HOW they do all such things i.e. working with extremely large unimaginable numbers which are beyond the integer limit. They can do add,... (1 Reply)
Discussion started by: shoaibjameel123
7. Shell Programming and Scripting
I am processing a text file which contains only words with few combination of characters (it is a dictionary file).
Is there a way to exclude only 1 to 8 character long words which not include space or special characters : '-`~.. so... (5 Replies)
Discussion started by: alekkz
8. Shell Programming and Scripting
How to find a particular line in a file without using grep? (3 Replies)
Discussion started by: proactiveaditya
9. UNIX for Dummies Questions & Answers
I have the following grep command in a script to search through a file for a string and return its count, and it works fine for when the string exists:
grep "string" file.txt | wc
However, sometimes the result will be 0 and I want the script to take this as the result. Right now... (6 Replies)
Discussion started by: ocelot