Search Results

Search: Posts Made By: ladyAnne
2,657
Posted By ladyAnne
Thank you
Thank you
2,657
Posted By ladyAnne
Backspace to delete a single character
Hi

I normally use backspace to delete a single on my local machine in cygwin. Now I am trying cygwin on a virtual machine and when I type 'backspace', instead of a single character being deleted,...
4,112
Posted By ladyAnne
Thanks Anurag You were a big help. ...
Thanks Anurag

You were a big help.

One last question - At which part are you storing $2 in the array and what does a[$2]++ do ?

Thanks Alot Anurag
4,112
Posted By ladyAnne
Thank you. That helped me big time. If I may ask...
Thank you. That helped me big time. If I may ask please.. can you please explain to me how this code works. I appreciate all your help.
Thanks
4,112
Posted By ladyAnne
Thanks for the prompt reply. This is my...
Thanks for the prompt reply.

This is my exact script



#!/bin/bash
 
awk '/^cell id/{if(!a[$NF]) cnt++;a[$NF]++;next}END{print cnt}' gen_cell_orig_001.dsx



My actual file is...
4,112
Posted By ladyAnne
How to do a count within a file
Hi

I have a file that contains something similar to this:



cell id = 1A
cell id = 1B
cell id = 1C
cell id = 1D
cell id = 1E
cell NUM = 2A
cell NUM = 2B
cell NUM = 2C
cell NUM = 2D...
9,698
Posted By ladyAnne
Storing data from a table into a csv file
Hi

I need to write a bash script to take the data stored in 3 oracle tables .. and filter them and store the results in a csv file.

It is an Oracle database

Thank you
2,863
Posted By ladyAnne
Okay one last question ... The files get...
Okay one last question ...

The files get generated to the correct directory, how do I append a file extension .. so I want to create the files in my csv directoy as csv files.

I tried a few...
2,863
Posted By ladyAnne
Thank you, thats exactly what I needed. ...
Thank you, thats exactly what I needed.

---------- Post updated at 07:30 AM ---------- Previous update was at 07:25 AM ----------

one thing though, the outpu looks like this:...
4,924
Posted By ladyAnne
Writing awk script to read csv files and split them
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 )...
2,863
Posted By ladyAnne
The reason I want to do this within the scrpt, is...
The reason I want to do this within the scrpt, is because I have hundreds of files to run.. I eventually want it to run in a loop from my one directory of files, and store each output in another...
2,863
Posted By ladyAnne
Thanks, but I really need it to have this format...
Thanks, but I really need it to have this format .. simply because I have to build on it this way ..

#!/bin/bash
set -x
dir="/var/local/dsx/csv"
gawk -F, '
$1 == last1 && $2 == last2 {
...
2,863
Posted By ladyAnne
You see, I'm re-directing to a path and filename...
You see, I'm re-directing to a path and filename variable

printf $0"\n" >> $dir/$2

Not a division as such
so
$dir=/var/local/dsx
$2=filename
2,863
Posted By ladyAnne
Splitting a file and sending results to another file
Hi

Here is my script:



#!/bin/bash
set -x
dir="/var/local/dsx/import"
gawk -F, '
$1 == last1 && $2 == last2 {
printf $0"\n" >> $dir/$2
}
$1 !=last1 || $2 != last2 {
printf...
2,255
Posted By ladyAnne
Comparing a batch of files to a test file
Hi

I am writing a script to run a loop through a directory and run a diff on each file against my test file.

I then want to time how long each file to process (not sure how time works), as...
42,566
Posted By ladyAnne
Thank you. I'm trying to also figure out...
Thank you.

I'm trying to also figure out what this script does:



#!/bin/bash

rc=0

testname=`basename $0`
testfile=/tmp/$testname.dsx
errfile=/tmp/$testname.err

../dsxdiff \...
42,566
Posted By ladyAnne
what does "[ $? -eq 0 ]" mean
Hi

Can somebody please explain this to me:



[ $? -eq 0 ]
1,822
Posted By ladyAnne
Passing data from csv to script
Hi

I have a bash script as such:


cat $csvdir/$csvfile | csvdsx -ePlanned \
-iCell:CELLID \
-cCells%BTS:SITEID^Cell:CELLID \
-sCell:CELLID \
--multi-value-field=$paramname \ ...
11,722
Posted By ladyAnne
Thank you, it has removed that issue ... So silly...
Thank you, it has removed that issue ... So silly of me not to spot that.
11,722
Posted By ladyAnne
bad interpreter: Permission denied
Hi

I am running a script:


#!bin/bash
set -x
echo"select * from celldatamap;" || sqlcsv -v -h -s ',' -d MTNSA11G -u datasafe -p datasafe > andrea.csv


When I run my script
...
3,128
Posted By ladyAnne
Thank you for all you help, one more request...
Thank you for all you help, one more request please, is it possible to have this in a bash script

---------- Post updated at 07:39 AM ---------- Previous update was at 07:35 AM ----------

I was...
3,128
Posted By ladyAnne
I actually need to have it in a script, the...
I actually need to have it in a script, the reason is because I want to do some automated testing, so I'm working with many files etc at a time, I want one script that will make the process faster.
3,128
Posted By ladyAnne
Store table contents in csv file
I need to write a script to store the contents of a table in a csv file
I'm using Toad, it's a Oracle database.
Forum: UNIX and Linux Applications 06-15-2010
2,732
Posted By ladyAnne
Does anybody know how to store my tables to a csv file?
Hi

I'm using an oracle database... Lets call it databasename

My username and password are the same .... lets all that andrea/andrea

So I want to write a script to copy all the data from...
36,527
Posted By ladyAnne
I get this: $ ./dbconnect.sh sed:...
I get this:



$ ./dbconnect.sh
sed: -e expression #1, char 11: unknown option to `s'
Showing results 1 to 25 of 83

 
All times are GMT -4. The time now is 07:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy