10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have 3 block data with Process Beginning and Process Ending
I need to Print Begining and ending lines of block data other than sqlExtracts blocks
Process Beginning - 2016-04-02-00.36.13---->Print this line
Putting Files To daADadD for File will move to /sadafJJHFASJFFASJ/
Extract... (8 Replies)
Discussion started by: sushma123
8 Replies
2. Shell Programming and Scripting
Hi!
I have a pretty complex job - at least for me!
i have two csv-files with meassurement-data:
fileA
...... (2 Replies)
Discussion started by: IMPe
2 Replies
3. Shell Programming and Scripting
Hello friends,
How can I use awk commands to obtain selective blocks from different data files. For example
file1
a b c
d e f
g h i
file2
1 2 3
4 5 6
7 8 9
output
a b 2 3
d e 5 6
g h 8 9
is it possible ? (2 Replies)
Discussion started by: rpf
2 Replies
4. Shell Programming and Scripting
Hello,
I am using Awk in UBUNTU 12.04.
I have a file as following with 48,432,354 lines and 4 fields.
The file has this structure (There are repetitions of the first column in several lines)
AB_14 S54 A G
AB_14 S55 A A
AB_14 S56 G G
GO_15 S45 T A
GO_15 S46 A A
PT_16 S33 C C
PT_16 ... (4 Replies)
Discussion started by: Homa
4 Replies
5. Shell Programming and Scripting
Hi Team,
I am searching through log file using
grep -i '<search_key>' <file_name>|awk '{print $18}'
example outputs are
I would like to select the data between and no other as I am getting some junk characters sometimes which chaging the o/p display format.
Kindly assist.... (8 Replies)
Discussion started by: sanjaydubey2006
8 Replies
6. Shell Programming and Scripting
I am new to scripting/programming, so I apologize for any novice questions.
I have a tab delimited text file that was saved from excel xls file.
I am trying to select only the third column using awk command. My command line is as below:
cat test.txt | awk '{print $3}'
However, above... (8 Replies)
Discussion started by: SangLad
8 Replies
7. Shell Programming and Scripting
I have a file which contains five hundred thousand lines (500,000). I want to select lines of every 1000 lines from that file using AWK. I can think something like this in bash as below:
for lines in {0..500000..1000}
do
........
........
done
But I want to use AWK. I do not know how to... (4 Replies)
Discussion started by: vjramana
4 Replies
8. UNIX for Dummies Questions & Answers
Hi there, I have a text file with several colums separated by "|;#" I need to search the file extracting all columns starting with the value of "1" or "2" saving in a separate file just the first 7 columns of each row maching the criteria, with replacement of the saparators in the nearly created... (2 Replies)
Discussion started by: capnino
2 Replies
9. Shell Programming and Scripting
Hi
I am running a 'grep' command to retrieve a line from the file. The problem is that I also need 21 lines which go right after the line I just 'grep'(ed)
Is there a way to retrieve this block of data? Thanks -A (4 Replies)
Discussion started by: aoussenko
4 Replies
10. Shell Programming and Scripting
Hi
I have a several thousands lines text file. Is there any command(s), which would allow me to retreive a block of data between two specified lines of this file?
Thanks a lot -A (2 Replies)
Discussion started by: aoussenko
2 Replies