Search Results

Search: Posts Made By: pdathu
3,489
Posted By pdathu
Hello Sir, I joined this community 4 yrs ago but...
Hello Sir, I joined this community 4 yrs ago but my responsibilities changed to different OS & tech. Now, I am working with Unix OS & shell scripting.

Thanks for your code and its working fine for...
3,489
Posted By pdathu
I am newbie to shell scripting. I know basic UNIX...
I am newbie to shell scripting. I know basic UNIX commands & never had a chance to work on the advanced commands.

I read online about advanced commands but I don't how to use those.

Also,...
3,489
Posted By pdathu
Shell script Help - Data cleansing
Hello community, I am getting a log files from system and I need to clean the data and store as txt files for reporting purposes. Since these files are generated in Unix box, so we have to write...
5,472
Posted By pdathu
cut the some part in filename
Hi All,

I have the file & name is "/a/b/c/d/e/xyz.dat"

I need "/a/b/c/d/e/" from the above file name.

I tryning with echo and awk. But it not come. Please help me in this regard.

...
820
Posted By pdathu
File Name access
Hi All,

I have zipped file and daily we insert & update the data in that file. But every day we change the file name. So i trouble some times to point out my file. Is there any possibility to...
1,880
Posted By pdathu
i didn't understand ur code. Why yor are using...
i didn't understand ur code. Why yor are using OLDIFS.

Can i write code the below:

for EACH_TEBLE in $TABLE_LIST
do
if [[ EACH_TEBLE == "abc"]] then
......
elif [[ EACH_TEBLE...
1,880
Posted By pdathu
how to write for loop
Hi All,
I have one variable "TABLE_LIST" having the values and each valeus i can run in for loop like below:

TABLE_LIST= abc,abcd,acbfd

i should write the for loop and use each value at a...
1,132
Posted By pdathu
Derive the Year value from the date value
Hi All,

I have two dates: PREVIOUS_DAY and CURRENT_DAY. I need to test the these two values years are same or not.

PREVIOUS_DAY like '%y%m%d' i.e values like 111010, 111011, 111012 etc.
...
1,317
Posted By pdathu
AWK programming
Hi All,
I read the AWK manual in the MAN page. But i didn't understand the below piece of code in the script

TABLE=`echo "${FILE}" | awk -F"/" '{print $NF}' | cut -d"." -f1 | awk -F"_" '{print...
1,795
Posted By pdathu
Thanks for reply. suppose ARCHIVE_DT value:...
Thanks for reply.
suppose ARCHIVE_DT value: 9910, but i didn't get 199910 through the above code

---------- Post updated at 07:56 PM ---------- Previous update was at 07:43 PM ----------
...
1,795
Posted By pdathu
unable to chage the date format
Hi All,
I want chage the date value YYMM to YYYYMM in my script.
I am trying, but not get it.

Eg: 1109 changed to 201109.
$(if [[ $ARCHIVE_DT == "." ]] then
echo "1"
else
echo...
1,369
Posted By pdathu
Thanks, its working....
Thanks, its working....
1,369
Posted By pdathu
Mulitple rows update by sed command
Hi All,

I need to update 2 rows in my file. But i can do only one row update by sed command. Please help me how can i change mutltiple rows in single sed commana

my i/p file: (example.txt)...
3
1,347
Posted By pdathu
Thanks for the quick reply. I read the...
Thanks for the quick reply.
I read the information "getopts" in the provied link.
But i didn't understand "opt 2>/dev/null" in the first line and "*) showUsage;" in the 7th line.
Please expain...
3
1,347
Posted By pdathu
Loops
Hi All,
I am very new to Shell scripting. I read basic scripting manual. But i didn't understand the code. Please tell the meaning of the below code:

while getopts "F:f:R:r:C:c:" opt...
2,629
Posted By pdathu
Thanks for the quick reply.. -z checks...
Thanks for the quick reply..

-z checks whether the variable is empty or not?

Thanks for the information.
2,629
Posted By pdathu
-z means in unix
Hi All, I am very new to shell scripting.
Please tell me what is the meansing for below if condition.

if [[ -z $FREQUENCY_MODE || "$FREQUENCY_MODE" != "A" && "$FREQUENCY_MODE" != "D" ]]
...
Showing results 1 to 17 of 17

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