Search Results

Search: Posts Made By: lodhi1978
11,551
Posted By zaxxon
Looks like you are mixing up shell with awk. ...
Looks like you are mixing up shell with awk.
Shell does not know about $90. In awk this would be field $90, yes.
On the other side defining a shell variable which's name is consisting only of...
11,551
Posted By balajesuri
$ echo -e "\t hello" hello $...
$ echo -e "\t hello"
hello
$ echo -e "\t hello" | sed "s/[ \t]//g"
hello
Forum: AIX 06-30-2011
3,566
Posted By itkamaraj
see this example Running SQLPlus and PL/SQL...
see this example

Running SQLPlus and PL/SQL Commands From A Shell Script dbamac (http://dbamac.wordpress.com/2008/08/01/running-sqlplus-and-plsql-commands-from-a-shell-script/)


....
Forum: AIX 06-30-2011
3,566
Posted By itkamaraj
You need to set the proper environment variables....
You need to set the proper environment variables.

so cron finds sqplplus
Forum: AIX 06-30-2011
3,566
Posted By itkamaraj
you can add. but instead of adding the...
you can add.

but instead of adding the .profile, you can create a file and out the necessary variables and source it
4,733
Posted By rdcwayx
awk 'NR==FNR&&/PAGE :/ {a++;next}...
awk 'NR==FNR&&/PAGE :/ {a++;next} /PAGE :/ {$0=$0 " of " a}1' infile infile
Forum: AIX 10-03-2010
8,251
Posted By Vit0_Corleone
lodhi1978 Will be interesting if you try to...
lodhi1978 Will be interesting if you try to upload this files using SSH... If the speed would be the same than the problem really exists at provider site...
Forum: AIX 09-30-2010
8,251
Posted By dukessd
I think all you could do to improve the speed...
I think all you could do to improve the speed with the WAN bandwidth restriction in place would be to either only do incremental backups most of the time or to explore data compression on the primary...
10,689
Posted By methyl
Several issues in the script. Main problem is...
Several issues in the script.
Main problem is that the variable in the find line is between single quote characters. It will not get expanded.
Other issue is that when there is more than one file...
10,689
Posted By turk451
There are a couple areas for improvement of your...
There are a couple areas for improvement of your shell script. However, to address your primary concern, yes you can use variables in the find command. However, to allow those variables to be...
7,714
Posted By Franklin52
Should be something like: awk '/TITLE OF...
Should be something like:

awk '/TITLE OF ACCOUNT :/{s=$0;getline; s=s RS $0;next}
/A\/C NO. TYPE\/CCY :/{f=$(NF-1)}f{print s > f;print > f}' file
7,714
Posted By aigles
Another solution (assumes formfeed as data...
Another solution (assumes formfeed as data delimitor) : awk '
FNR==1 || /\f/{
memo = 1
}
/A\/C NO\. TYPE\/CCY/ {
filename = $(NF-1);
$0 = Text ORS $0;
memo = 0;
Text = "";
}...
7,714
Posted By Franklin52
After conversion the format you can try this: ...
After conversion the format you can try this:

awk '/A\/C NO. TYPE\/CCY :/{f=$(NF-1)}f{print > f}' unixfile


Explanation of the first command:

awk -F"[\./]" '/FILE =/{f=$(NF-1)}f{print > f}'...
7,714
Posted By Franklin52
Try this: awk -F"[\./]" '/FILE...
Try this:

awk -F"[\./]" '/FILE =/{f=$(NF-1)}f{print > f}' file
Showing results 1 to 14 of 14

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