02-02-2015
Sorry fellas,
Being in the expert bucket I figured you guys would "see" it. ... and if you execute the script I provided you will see that it actually works and the desired output is shown. No mind reading necessary !
I am trying to remove the "(" and the ")" from var without using an external command in a single step.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi guys,
insert into /*<new>*/abc_db.tbl_name
this is should be replaced to
insert into /*<new>*/${new}.tbl_name
it should use '.' as delimiter and replace
is there any way to do it using sed (6 Replies)
Discussion started by: sol_nov
6 Replies
2. Shell Programming and Scripting
Hello,
I am running a bash script under linux which first defines an CA-array like
j=0
num1=120.00
num2=10.00
until
do
CA='echo $num1 + $j*$num2'
j=$
done
within the later awk section of this same script I want to read data from a file. If the value of the second column is... (3 Replies)
Discussion started by: MotAah
3 Replies
3. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies
4. Shell Programming and Scripting
Hi there, I'm new to shell scripting and need some help if possible?
I need to create a shell script (.sh) to run as a cron job on an ubuntu linux server to connect to an external sftp sites directory using credentials (which I have) and then download to our internal ftp server and then copy... (3 Replies)
Discussion started by: ghath
3 Replies
5. Shell Programming and Scripting
Hi,
I have a CSV with following type of data and would like to replace the timestamp information with 'null' string. Can you please suggest me on same?
8,1,'1','1',11,'2013-08-12 18:34:17.0','null',1,'2013-08-12 18:34:17.0','null','PROMOTIONAL','12','1','11','11',11,'0'
Thanks for your... (10 Replies)
Discussion started by: bhupinder08
10 Replies
6. Red Hat
How to check whether the disk in linux machine are internal or external ( from nas or san). How to identify internal(local) and external disks. Following are some details of my server. Thanks.
#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 15G 3.5G 10G... (2 Replies)
Discussion started by: salmanraza
2 Replies
7. Shell Programming and Scripting
Hi,
I'm trying to replace a string with sed, in a text file containing this pattern:
location alpha
value x
location beta
value y
location gamma
value y
location delta
value y
location theta
value z
...
What I want to achieve is:
Find location beta into text file... (1 Reply)
Discussion started by: TECK
1 Replies
8. Shell Programming and Scripting
Not able to paste my content. Please see the attachment :-( (2 Replies)
Discussion started by: vivek d r
2 Replies
9. Shell Programming and Scripting
Hi,
I know how to replace a string with another in a file.
But, i wish to replace the below string pattern
EncryptedPassword="{gafgfa}]\asffafsf312a" i.e EncryptedPassword="<any random string>"
To
EncryptedPassword=""
i.e remove the random password to a empty string.
Can you... (3 Replies)
Discussion started by: mohtashims
3 Replies
TXAWS(1) User Commands TXAWS(1)
NAME
txAWS - txAWS S3 helper commands
SYNOPSIS
command [options]
txaws-create-bucket
txaws-delete-bucket
txaws-delete-object
txaws-discover
txaws-get-bucket
txaws-get-object
txaws-head-object
txaws-list-buckets
txaws-put-object
OPTIONS
--version
show program's version number and exit
-h, --help
show this help message and exit
-a ACCESS_KEY, --access-key=ACCESS_KEY
access key ID
-s SECRET_KEY, --secret-key=SECRET_KEY
access secret key
-r REGION, --region=REGION
US or EU (valid for AWS only)
-U URL, --url=URL
service URL/endpoint
-b BUCKET, --bucket=BUCKET
name of the bucket
-o OBJECT_NAME, --object-name=OBJECT_NAME
name of the object
-d OBJECT_DATA, --object-data=OBJECT_DATA
content data of the object
--object-file=OBJECT_FILENAME
the path to the file that will be saved as an object; if provided, the --object-name and --object-data options are not necessary
-c CONTENT_TYPE, --content-type=CONTENT_TYPE
content type of the object
txAWS 0.2.3 May 2012 TXAWS(1)