Search Results

Search: Posts Made By: Swapna173
3,826
Posted By Swapna173
Extract dates from file name.
Hi All,

I have files with names as
us_Gec1_wk_01to01_2008.TXT
ad_EngEnt_wk_01to10_2008.TXT
br_EngMov_wk_01to10_2008.TXT
Over here, I need to extract the dates and the year and store them in...
3,604
Posted By Swapna173
tsv file comparison
Hi Guys,

I have to write a script to compare the tsv files headers with the values stored in the variable in bash.

I have declared variables as
HEADER_VERSION="All Versions\tVersion...
2,346
Posted By Swapna173
string comparison
Hi Guys

i need to write a script to check the file structure

I have added the the file headers in the configuration file and execute the file at the start of the script.

Now the function
...
4,230
Posted By Swapna173
but my sub-script is containing some levels of...
but my sub-script is containing some levels of actions and if those actions fail i need to return the status to the main script which is done but along with return status i need to send the filename...
4,230
Posted By Swapna173
global variables
Hi,

I hav created a script that calls a sub-script. In both the scripts i called the configuration file. Now i wanted to use a variable that should be used in both script and sub-script files....
2,784
Posted By Swapna173
error in if statement
Hi,

This is my script to catch any oracle errors.

In this, the $sqlerr returns
ORA-01017: invalid username/password; logon denied
when i specify wrong username/password

the if condition...
3,169
Posted By Swapna173
Hey thanks, my problem got resolved. I used...
Hey thanks,

my problem got resolved. I used single greater than operator once in the file.
3,169
Posted By Swapna173
File gets truncated
Hi Guys,

I have a master script file.

That calls the other script files. The sub script files append some of the data to the log file.

Once the master script completes one sub script...
22,813
Posted By Swapna173
Command to check RAM usage
Hi Guys,

How can i check the RAM usage for a particular user on the Linux machine.

What command can be used.

Thanks in advance,
Swapna
3,574
Posted By Swapna173
but will i be able to change its value in the...
but will i be able to change its value in the sub-file Load_Measure_Data_In_Staging.sh
and retrieve the same
3,574
Posted By Swapna173
------------------------ contents in conf file...
------------------------
contents in conf file utilityenv.conf
------------------------

export DataLoadedSummaryFile=Load_Measure_Summary.tab
export TOTALETLFILES=7
export ETLFILESFOUND=0
...
3,574
Posted By Swapna173
fetch Variable value
Hi Guys,

I have written a script that declares all the variables and its values in a conf file.
Now i use a variable whose value i need to change it in one of the sub-file that is used in the...
8,069
Posted By Swapna173
Exact match
Sorry i made a mistake mine is a comma separated file, so i need to print col2 corresponding to search in col1. and will this one match the exact string means not the substring of a string
8,069
Posted By Swapna173
this does not work if i use it in the for Loop....
this does not work if i use it in the for Loop. In fact it search the string in the beginning and there are lines where the beginning string matches. there this one does not work.
8,069
Posted By Swapna173
Find exact string
Hi Guys,

File is containing data
Col1 Col2
ListPrice List Price
Price Average Selling Price - Actual
ProjPrice Average Selling Price
ProjPrice Launch Price
ProjCost Cost

Now i...
2,420
Posted By Swapna173
i think sendmail is not configured. it's says...
i think sendmail is not configured. it's says invalid command. can i use mutt command for this.
2,420
Posted By Swapna173
HTML file in the mailbody
Hi Guys,

How can i send a html file in the mailbody. when i use the command
cat aa.html | mail -s "hello" abc.gmail.com

this displays the entire contents of the html file.

It doesn't...
5,719
Posted By Swapna173
SQL Connection check though Scripting
Hi Guys,

I wanted to check the sql connection through scripting if it is avilable then proceed else stop the process

I was trying
sqlplus -L username/passwd@sid
if this is not sucess it...
7,786
Posted By Swapna173
File Transfer through FTP
Hi Guys,

I wanted to transfer files from FTP machine to Linux Machine.

In this, I need to create a batch file that will connect to the Linux Machine and Transfer the files specified as the...
5,479
Posted By Swapna173
uuencode command gives junk values
How to attach a file with the uuencode.

It gives me some junk values in the mail body that i received.

i used the following command
uuencode Load_Measure_Summary.tsv | mailx -s "an HTML file"...
10,059
Posted By Swapna173
Count of Field for Non-Empty
Hi Guys,

I wanted to count the number of records for a particular field of a file. whose fields are separated by comma","

I fI use this command.
cat "filename" cut -sd "," -f13 | wc -l

This...
4,239
Posted By Swapna173
Hey thanks buddy, I wanted to get I which is...
Hey thanks buddy,

I wanted to get I which is through cut and tail. It worked thanks a lot. for ur help. I was searching since morning.

Swapna
4,239
Posted By Swapna173
Mid of String
How can i get the Sub string of a String

My parent String is a file name which is namely "US_SALES_08_2008_I.csv"
now i wanted to retrieve substring that is before .csv but after "_"


that is...
2,982
Posted By Swapna173
Redirect Query o/p to variable
Hi,

I wanted to o/p the number of rows in a table to a variable in linux. How can i achieve this.

I wrote the query and its settings like feedback, pagesize line size in a file and using this...
Showing results 1 to 24 of 24

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