Search Results

Search: Posts Made By: srimitta
2,015
Posted By srimitta
How to pass two words within double quotes as variable?
Hi All,

OS - Suse 10
ksh --version
version sh (AT&T Research) 93s+ 2008-01-31

I am passing two words within double quotes ("Application Developer") to script as variable, but script is...
1,407
Posted By srimitta
Thanks Don Followed your suggestion and now...
Thanks Don

Followed your suggestion and now script is running successfully.

Thanks
Markar
1,407
Posted By srimitta
Script test failing
Testing some old script developed by different user.
#!/usr/bin/sh
case "$0" in
*/*) cmd="$0";;
*) cmd=`which "$0"`;;
esac
dir=`dirname "$cmd"`
node="$dir/."
echo $node

below two...
12,728
Posted By srimitta
Thanks Scott, Excellent it's working. ...
Thanks Scott, Excellent it's working.

Srimitta
12,728
Posted By srimitta
Hi Scott, Thanks for the reply. I ran...
Hi Scott,

Thanks for the reply.

I ran script and getting below error message, any idea.

$ ksh -x export_db2_tables.ksh
+ cd /home/db2inst2/data_export/scripts/
+ cat table_names
table1...
12,728
Posted By srimitta
Run DB2 export command in loop
Hi All,

I have list of 100 table names in a file, how to read table name from and pass to DB2 export command and run for all tables in loop.

Please help me with script.

db2 EXPORT TO...
12,171
Posted By srimitta
john1212, Address was copy / paste mistake. ...
john1212, Address was copy / paste mistake.


Thanks Alister worked like charm.



Regards
srimitta
12,171
Posted By srimitta
Remove SPACES between PIPE delimited file
This is my input file with extra information in the HEADER and leading & trailing SPACES between PIPE delimiter.
02/04/2010 Dynamic List Display 1...
2,102
Posted By srimitta
Sorry, it was my typo mistake I am have...
Sorry, it was my typo mistake

I am have below entry in my .profile
DS_BIN=/opt/IBM/InformationServer/Server/DSEngine/bin
export DS_BIN

When I do echo $DS_BIN, echo is returning empty
$ echo...
2,102
Posted By srimitta
echo is returning empty
OS - AIX 6.1

I am have below entry in my .profile
DS_LIB=/opt/IBM/InformationServer/Server/DSEngine/bin
export DS_BIN

When I do echo $DS_BIN, echo is returning empty
$ echo $DS_BIN
$
...
9,714
Posted By srimitta
Perfect it's working. Thanks srimitta
Perfect it's working.

Thanks
srimitta
9,714
Posted By srimitta
Remove first column from file
Hi,

This is how data in test.txt file
| |abc|zxcv|xy12|
| |cvs|zzvc|a23p|

How can remove first column.
abc|zxcv|xy12|
cvs|zzvc|a23p|

Thanks
srimitta
27,381
Posted By srimitta
Thanks bakunin, It's working with a small...
Thanks bakunin,

It's working with a small change, replaced single qoutes to double qoutes.
27,381
Posted By srimitta
Hi bakunin, Your script works great with...
Hi bakunin,

Your script works great with spaces in file names, but I have some files Apostrophe between file names like "BOM Header's.txt".

Any help in modifying your script to remove...
27,381
Posted By srimitta
Thanks bakunin, Great it's working, this is...
Thanks bakunin,

Great it's working, this is what I was trying to do.

srimitta
27,381
Posted By srimitta
This trick is working fine, cp 'Material...
This trick is working fine,

cp 'Material Header.txt' `ls 'Material Header.txt' | tr -d ' '

But when I try this in loop it doesn't work.

for file in $(ls *' '*)
do
echo "$file"
cp "$file"...
27,381
Posted By srimitta
Thanks Vidyadhar for your reply, Great, but...
Thanks Vidyadhar for your reply,

Great, but how to rename all files "with spaces" to "withoutspaces".

Thanks
Srimitta
27,381
Posted By srimitta
Remove spaces between file names
Hi All,

I have spaces in between file names.

"Material Header.txt"
"Customer Header.txt"
"Vendor Header.txt"

And how can I remove spaces between file names like below
...
Showing results 1 to 18 of 18

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