10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to use awk to match where field 3 contains a number within string - then print the line and just the number as a new field.
The source file is pipe delimited and looks something like
1|net|R_North|1123|||... (5 Replies)
Discussion started by: Mudshark
2. Shell Programming and Scripting
I have a data file (which has five columns) from which im finding column count of all the records and writing into separate file say "colcnt.txt". And I find one (or more) records have less column counts (i.e split records). I need to know which record(s) have that split scenario. Is there any way... (4 Replies)
Discussion started by: Prashanth B
3. Shell Programming and Scripting
How to find a line number?
I have a file:
Is there a simple method to find out on which line for example the 9 is written? (3 Replies)
Discussion started by: jds93
4. Shell Programming and Scripting
I was trying to search the following scenario on the forum but was not able to.
Let's say that I have a very large file that has some bad data in it (for ex: 0.0015 in the 12th column) and I would like to find the line number and remove that particular line.
What's the easiest... (3 Replies)
Discussion started by: pchang
5. Shell Programming and Scripting
I have a two files containing numbers like below. First one contains one number on each line, the other is a table of numbers, each separated by a space. There are the same number of lines in each file.
I want to take each number in the row of the table and find the difference from the... (12 Replies)
Discussion started by: kristinu
I am new to AIX and I am developing a small tool for our product which helps debug memory leaks etc.
Q1)Is there a way in which i can get a function trace back as to the call (lets say malloc() )has been made in which file--> in which function.
I tried using the
#pragma options (... (0 Replies)
Discussion started by: Wkdunreal
7. Shell Programming and Scripting
I want to display line number for matching string in a file. can anyone please help me.
grep -n "ABC" file
so it displays
But i only want to have line number,i don't want that it should prefix matching context with line number.
Actually my original... (10 Replies)
Discussion started by: sarbjit
8. Shell Programming and Scripting
I need to write a script which will have a text string as a input and the output should find out the number in the text string and add one to it.
Input => asfdosainovih1234lnsiohn
Output => 1235
All the numbers in the text will be together and only one time in the line.
... (2 Replies)
Discussion started by: vikings.svnit
9. Shell Programming and Scripting
I am doin a project in shell script please answer the above question.....
waiting........ (2 Replies)
Discussion started by: shivarajM
10. UNIX for Dummies Questions & Answers
I need to find the number of tab delimiters in the first line of a file.So using
word=`head -1 files.txt`
I have extracted the first line of file into a variable word.It has 20 tab delimted columns.So can anyone help me in finding the number of delimiters?
I am using csh and I am a... (5 Replies)
Discussion started by: poornimajayan