04-20-2010
Can you show a sample input file and desired output?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all.
Am using the below command to get the database size for past two days..
grep total * |awk '{print $9/1024}'
560.746
1260.336
Now i want to see only the size in GB's which means i need to avoid the words from (.dot) and the output should come like below:
560
1260 (3 Replies)
Discussion started by: suri.tyson
3 Replies
2. Shell Programming and Scripting
Hi guys,
I have got a file which doesn't have the same number of columns in each line. I would like to print the second column and the one that begins with 33= and has some numbers after '33='
Can you please help me asap?
Cheers (7 Replies)
Discussion started by: alexandra_ola
7 Replies
3. Shell Programming and Scripting
Dear,
Can somebody help me with this?
I have a variable
TGT=T2DIRUPDAZ20070326VA
I want to get in variables some part of TGT. like this.
TGT1=UPDA
TGT2=20070326
TGT3= VA
These three variables have fixe position in variable TGT. (2 Replies)
Discussion started by: yeclota
2 Replies
4. UNIX for Dummies Questions & Answers
Hello Everyone, (1 Reply)
Discussion started by: thankful123
1 Replies
5. UNIX for Dummies Questions & Answers
Hi
Here is my script that calls my awk script
#!/bin/bash
set -x
dir="/var/local/dsx/csv"
testfile="$testfile"
while getopts " f: " option
do
case $option in
f ) testfile="$OPTARG";;
esac;
done
./scriptFile --testfile=$testfile >> $dir/$testfile.csv
It calls my awk... (1 Reply)
Discussion started by: ladyAnne
1 Replies
6. Shell Programming and Scripting
pls help
Input:
file1
word1
text1
word2
text2
word3
text3
file2
word1
text11
word3
text13
can u pls help in getting the same
output:
file1 text1 text2 text3 (1 Reply)
Discussion started by: bha148
1 Replies
7. Shell Programming and Scripting
Dear all
I am trying to divide a file using the number of words as a condition. Alternatively, I would at least like to be able to retrieve the first x words of a given file. Any tips?
Thanks in advance. (7 Replies)
Discussion started by: aavv
7 Replies
8. Shell Programming and Scripting
hi, i really need it ...it's not simple to explain but as it's part of a crontab i can't split the file manually...and the file can change every day so the lines are not a good base.
example: how to split 1 csv file in 15 files?
thank you very much
regards :b: (4 Replies)
Discussion started by: 7stars
4 Replies
9. Shell Programming and Scripting
I have two (or more, to make it generic) csv files. Each line contains words separated by comma. None of words have any space. The number of words per line is not fixed. Some may have one, and some may have 12... The number of lines per file is also not fixed.
What I need is to find common words... (1 Reply)
Discussion started by: nick2011
1 Replies
10. Shell Programming and Scripting
Hi guys,
I have a requirement where i need to split a .csv file into multiple files.
Say for example i have data.csv file and i have splitted that into multiple files based on some conditions i.e first file should have 100, last file 50 and other files 1000 each. Am passing the values in... (2 Replies)
Discussion started by: azherkn3
2 Replies
LEARN ABOUT DEBIAN
gr_plot_const
GR_PLOT_CONST(1) User Commands GR_PLOT_CONST(1)
NAME
gr_plot_const - constellation plot of I&Q data using GNU Radio
SYNOPSIS
gr_plot_const: [options] input_filename
DESCRIPTION
Takes a GNU Radio complex binary file and displays the I&Q data versus time and the constellation plot (I vs. Q). You can set the block
size to specify how many points to read in at a time and the start position in the file. By default, the system assumes a sample rate of 1,
so in time, each sample is plotted versus the sample number. To set a true time axis, set the sample rate (-R or --sample-rate) to the sam-
ple rate used when capturing the samples.
OPTIONS
-h, --help
show this help message and exit
-B BLOCK, --block=BLOCK
Specify the block size [default=1000]
-s START, --start=START
Specify where to start in the file [default=0]
-R SAMPLE_RATE, --sample-rate=SAMPLE_RATE
Set the sampler rate of the data [default=1.0]
SEE ALSO
gr_plot_char(1) gr_plot_const(1) gr_plot_fft_c(1) gr_plot_fft_f(1) gr_plot_fft.py(1) gr_plot_float(1) gr_plot_int(1) gr_plot_iq(1)
gr_plot_psd_c(1) gr_plot_psd_f(1) gr_plot_qt(1) gr_plot_short(1)
gr_plot_const 3.5 December 2011 GR_PLOT_CONST(1)