Search Results

Search: Posts Made By: Vijay81
1,595
Posted By Vijay81
Add multiple parameters to environment file
Hi,

I am connecting to oracle DB from a unix script and below is how I am logging in with the parameters. this works fine, but the script connects to the DB thrice in different places and...
2,094
Posted By Vijay81
thanks in2nix4life and methyl. curly bracket was...
thanks in2nix4life and methyl. curly bracket was the issue. I included it and it worked.
2,094
Posted By Vijay81
File copying in FOR loop
Hi,

I am trying to perform a dos2unix conversion for a file. I am doing this in the FOR loop. Below is the command I am using in my script.
$FILE is the file the for loop is processing currently...
11,106
Posted By Vijay81
Hi Scrutinizer, thanks for your quick response.....
Hi Scrutinizer, thanks for your quick response.. can you please explain me what is "${f%_*}.${f##*.}" ??
I am quite new in unix, please explain.
11,106
Posted By Vijay81
Hi bartus11, I am doing a unix script.. and I...
Hi bartus11, I am doing a unix script.. and I would like to do this in the script with shell commands..(bash) in my unix script.. My system is Linux.
11,106
Posted By Vijay81
Remove the date portion from file name
hi,
I am trying to remove the last field before the period (.) from a list of file names in a directory in a shell script.
Below is the list of file names.


ENVID_archival_20120214092258.log...
7,623
Posted By Vijay81
hi Corona, Files are expected in the same...
hi Corona,

Files are expected in the same directory. But it is a valid scenario if the files are not with that date and in that case, I look for another set of files with different date. only if...
7,623
Posted By Vijay81
I get the same error message: $ cd...
I get the same error message:

$ cd /opt/informatica/infa_shared/SrcFiles
$ ls FERAL_DATA_*_20121213.FERAL_DAT.TXT
ls: FERAL_DATA_*_20121213.FERAL_DAT.TXT: No such file or directory

I am not...
7,623
Posted By Vijay81
hi CTSGNB, thanks for respnding. ...
hi CTSGNB,

thanks for respnding.

below are the details you asked for:

env:

_=/bin/env
G_BROKEN_FILENAMES=1
HISTSIZE=1000
HOME=/home/wertty
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8...
6,541
Posted By Vijay81
thanks Scott, that works I am on LINUX. ...
thanks Scott, that works

I am on LINUX.

actually, as it is a date value, should n't I use the defaule date - ex 00010101 instead of 0 with which it can't compare another date value..

I...
6,541
Posted By Vijay81
date values are in YYYYMMDD.. there is no...
date values are in YYYYMMDD.. there is no timestamp part for the date fields.. how do I add timestamp to date values? if one of the date values can be empty which is a valid scenario in my case, how...
6,541
Posted By Vijay81
in my script, I am comparing the date values.....
in my script, I am comparing the date values.. when DATE_OF_RUN_DB can't be a no value, Actual_Date can have no value.. and this is where I get the
"[: : integer expression expected" error.
...
6,541
Posted By Vijay81
redirect for "[: : integer expression expected" error
Hi, I read in this forum that for "[: : integer expression expected" error, redirect the error message (2> /dev/null ) which can hide it.. is this a proper solution for the problem.. please let me...
7,623
Posted By Vijay81
Script to pick the files from source folder
Hi,

I wrote a script to pick files based on some logic. when I execute my script, I get the below message ( I bolded the lines in the script where this error message shows up), it says that...
5,728
Posted By Vijay81
Hi Corona, thanks for all your inputs, my...
Hi Corona,

thanks for all your inputs, my script tars a file and I am able to extract individual files. the environment file was set up today and I need to use it, for which I changed my script...
5,728
Posted By Vijay81
Hi Corona, With TAR verify, will I be able...
Hi Corona,

With TAR verify, will I be able to extract the files back from the .tar.gz file?

eg., I create a .tar.gz file on all the below files. After I execute my script, I see that the...
5,728
Posted By Vijay81
Hi Corona, I am very new to Unix that's why...
Hi Corona,

I am very new to Unix that's why I have hiccups..

My machine is Linux OS.

My requirement is to take some files from landing directory (there will be many files, but I need to...
5,728
Posted By Vijay81
hi corona, I am using the below commands...
hi corona,

I am using the below commands (in a single line) in my script to tar the files as per your suggestion.


FILE_LIST=`ls $ENVID_*_$DATE_OF_RUN.$ENVID_*.TXT` | echo "files are...
5,728
Posted By Vijay81
Hi Corona, Please find the input files....
Hi Corona,

Please find the input files. What I am trying to achieve is zip all of these files and then tar them to a single file with the timestamp appended to the tar file name.

...
5,728
Posted By Vijay81
thanks for your inputs corona688. My script is...
thanks for your inputs corona688. My script is getting some input parameters which helps it to find the file names and then lists all the files with specific names and gunzip and tars them to an...
5,728
Posted By Vijay81
thanks for the response Corona688. Do you...
thanks for the response Corona688.

Do you mean .gz itself is a package which compresses multiple files to individual .gz files?

I am not sure what happens in my script, I changed to gzip as...
5,728
Posted By Vijay81
TAR and ZIP files
Hi,
I need a help with zip and tar. I have no done any scripts before with zip command.

What I need to achieve is list files in a directory with a specific name (ID_DATE format- given examples)...
16,634
Posted By Vijay81
Multiple files with the same name in the same directory
Hi,

Is it possible to have multiple files with the same name in a same unix directory?

Eg., in the path \tmp, can we have 2 files with the same name as SALES_data_20120124.TXT?

I heard it...
5,836
Posted By Vijay81
Error message with tail command
Hello,

I wrote a script and part of the script, I have a validation to check if the file has <EOF> on the last line of the
file. If it does not have a <EOF>, then a message has to be written to...
2,028
Posted By Vijay81
thanks coronna the quick response. Actually...
thanks coronna the quick response.

Actually the script fails in the awk line.. error message is below:

awk: cmd. line:1: fatal: cannot open file `File2_20111222' for reading (No such file or...
Showing results 1 to 25 of 40

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