I need to replace the line containing "STAGE_DB" with the line
"STAGE_DB $DB # database that contains the table being loaded ($workingDB)"
Here $DB is passed during the runtime.
How can I do this?
Thanks,
Kousikan (2 Replies)
Hi All,
I am new to unix shell scripting, I need your help guys in coming up with some thing for the following scenario:
file1
ABC_BASE ${base}
ABC_ACC ${acc}
ABC_TEST ${test}
01-01-2006 ${from_dt}
01-15-2006 ${to_dt}
file 2
I have an file2.sql file which contains:
####This... (4 Replies)
Hi all,
I've been experiencing a difficulty trying to match a number and write it to a new file.
My input file is: input.txt
It contains the lines:
103P 123587.256971 3.21472112 3.1517423
1.05897234566427 58.2146258 12.35478 25.3612489
What would be the sed command to... (17 Replies)
I have a pattern
username:x:32005:32006::/usr/local/user:/bin/bash
I need to match the line containing username and replace /bin/bash with /usr/local/my/bin/noshell
So it becomes
username:x:32005:32006::/usr/local/user:/usr/local/my/bin/noshell (7 Replies)
I have a file containing a multiple lines of the format
sddfdsf_gaf/ywrtrtwrt_gaf
ghfghfgh_ert/xcvxcvcv_ert
werwerwwerw_adf/jkhjkhjkjhkjhk_adf
I am interested in only the first 3 letters following the "_" character and make those 3 letters uppercase after extraction. So would like to convert... (5 Replies)
Hi How Are you?
I am doing fine!
I need to go now?
I will see you tomorrow!
Basically I need to replace the entire line containing "doing" with a blank line:
I need to the following output:
Hi How Are you?
I need to go now?
I will see you tomorrow!
Thanks in advance.... (1 Reply)
Ive used this snippet of code on a solaris box thousands of times.
But it isnt working on the new linux box
sed -n '/interface LoopBack0/{N;/ ip address /p;}' *.conf
its driving me nuts !!
Is there something Im missing ? (7 Replies)
Hi ,
I have a file where i have modifed certain things compared to original file . The difference of the original file and modified file is as follows.
# diff mir_lex.c.modified mir_lex.c.orig
3209c3209
< if(yy_current_buffer -> yy_is_our_buffer == 0) {
---
>... (5 Replies)
Im using the command below , but thats not the output that i want. it only prints the odd and even numbers.
awk '{if(NR%2){print $0 > "1"}else{print $0 > "2"}}'
Im hoping for something like this
file1:
Text hi this is just a test
text1 text2 text3 text4 text5 text6
Text hi... (2 Replies)
This command is not working for me.
awk '{if ($1 == server) {$1 = #server} }' /etc/ntp.conf
# grep server /etc/ntp.conf
# Use public servers from the pool.ntp.org project.
server 0.rhel.pool.ntp.org iburst
server 1.rhel.pool.ntp.org iburst
server 2.rhel.pool.ntp.org iburst
server... (5 Replies)
Discussion started by: kenshinhimura
5 Replies
LEARN ABOUT DEBIAN
ecaccess-file-put
ECACCESS-FILE-PUT(1p) User Contributed Perl Documentation ECACCESS-FILE-PUT(1p)NAME
ecaccess-file-put - Upload a File on the ECaccess File System
SYNOPSIS
ecaccess-file-put -version|-help|-manual
ecaccess-file-put [-debug] [-progress] [-umask mode] [-offset number] [-bufsize length] source-local-file [target-ecaccess-file]
DESCRIPTION
Allow uploading source-local-file on the ECaccess File System. If no target-ecaccess-file is specified then the source-local-file name is
used.
The target-ecaccess-file is in the form [domain:][/user-id/]path. Please read the "Shell commands -> File Management" section of the
"ecaccess" guide for more information on the ECaccess File System.
ARGUMENTS
source-local-file
The name of the source Local File.
target-ecaccess-file (optional)
The name of the target ECaccess File.
OPTIONS -progress
Provide a progress meter on the standard terminal, allowing to monitor the file transmission in real-time. The progress bar is
removed from the terminal when the transmission is done. This option is not supported and ignored on Windows platforms.
-umask mode
The user file-creation mode mask (umask) is used to determine the file permission for newly created files. The default value is
640.
-offset number
Every open file has an associated file offset, which determines where the next read operation will start. This number is set to 0
by default.
-bufsize length
Specify the length of the buffer (in bytes) which is used to upload the file. The larger the buffer the smaller the number of
http/s requests. By default a buffer of 10485760 bytes(10MB) is used.
-version
Display version number and exits.
-help Print a brief help message and exits.
-manual Prints the manual page and exits.
-debug Display the SOAP messages exchanged.
EXAMPLES
ecaccess-file-put $HOME/bin/a.out
Upload the local $HOME/bin/a.out File in the $HOME directory of the authenticated user. The Target File Name is a.out.
ecaccess-file-put $HOME/bin/a.out c1a:/tmp/a2.out
Upload the local $HOME/bin/a.out File in the tmp directory of c1a. The Target File Name is a2.out.
SEE ALSO
ecaccess-file-delete, ecaccess-file-get, ecaccess-file-mget, ecaccess-file-modtime, ecaccess-file-mput, ecaccess-file-rmdir, ecaccess-file-
copy, ecaccess-file-dir, ecaccess-file-mdelete, ecaccess-file-mkdir, ecaccess-file-move, ecaccess-file-chmod, ecaccess-file-size and
ecaccess.
perl v5.14.2 2012-04-16 ECACCESS-FILE-PUT(1p)