Search Results

Search: Posts Made By: bghosh
1,903
Posted By bghosh
"Help debug the shell script"
Hello All,

I have got a section of shell script which was working earlier but now it is giving some different results:

MSG=

while true
do
themenu
getchar =

case $answer...
2,286
Posted By bghosh
Create a folder under different user directory
Hello All,

I have to write a shell script and use it in informatica. The script has to perform below actions:


The script gets executed from edw user.
Through the script, a DT folder has to...
1,556
Posted By bghosh
Filename with datetime
Hello All,

I need unix command to generate a file with datetime in it.
For example :

ABC_YYYYMMDDHH24MISS.txt

Regards
Biswajeet Ghosh
779
Posted By bghosh
Rename files in a format
Hi Pravin,

Thanks for replying. COuld you please explain the code as I am new to Unix.
779
Posted By bghosh
Rename files in a format
Hi All,

I have a requirement like, the source file is in the format :
XXXXXXXX.D0000.GZZZZ

I have to rename the file in the format :

XXXXXXXX.XXXXXXXX.D0000.GZZZZV00

I have to only...
7,455
Posted By bghosh
Using Datastage environment variables in Unix script
Hi All,

I am using ETL tool Datastage and is installed on Linux environment. Few environment variables are set in datastage. Now my requirement is to use those environment variables in a unix...
6,699
Posted By bghosh
Bad character in output file
Hi All,

I am facing some problems with bad characters in my file.For example-

00000000509 TCI DEVOFFERS= 1

Now I want to remove all bad characters and replace with *.
Please suggest some...
12,097
Posted By bghosh
How to extract a substring from a string
Hi,

I have an input string say for example:

ABC,DEF,IJK,LMN,...,XYZ

The above string is comma delimited. Now I have to extract the last part after the comma i.e. XYZ.

:b:
1,559
Posted By bghosh
Script returning an error message on exiting
Hi,

I am writing a script in which I am using an IF-Else statement.

Code sample:


# Check for the product.
If (test "$3" = "Pet") Then
Product_Code="PI"
elif (test "$3" =...
1,994
Posted By bghosh
yes I did. So what would you suggest?
yes I did.

So what would you suggest?
1,994
Posted By bghosh
Regular Expression not working with sed
Hi All,

I am facing some problems with regular expression with sed.

I have a .txt file with the contents as below:

This is a dummy file

# File created to test execution of regular...
3,437
Posted By bghosh
code to delete lines starting with any special characters or blank lines
Hi,

Thanks for the quick reply.
As posted earlier,
I need to delete all the blanks lines and any line staring with a special character such as # or , or _
3,437
Posted By bghosh
Read .txt file and dropping lines starting with #
Hi All,

I have a .txt file with some contents as below:

Hi How are you?
# Fine and you?

I want a script file which reads the .txt file and output the lines which does not start with #.
...
Showing results 1 to 13 of 13

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