Search Results

Search: Posts Made By: jville
1,555
Posted By jville
Resolved. Much appreciate your valuebale...
Resolved.
Much appreciate your valuebale solutions.

Zaxxons solution fitted the best, altough vgresh99 solution is comparable.

quirkasaurus , your solution is good as well but works only if...
1,555
Posted By jville
awk -v dilema
Hello Folks,
How do I use awk for passing, seraching and returning certain lines above a pattern variable


numbers.txt

one
two
three
four
five
six
seven
eight
nine
ten
eleven...
1,352
Posted By jville
Worked ! Thank-you Tigers.
Worked ! Thank-you Tigers.
1,352
Posted By jville
Search and replace with awk
Hi Shell Tigers,
I am trying to acheive search and replace strings within a setup file.
Help much appreciated.


test.setup
ORACLE_HOME=/oracle/product/11.0.0/home01
...
24,173
Posted By jville
try this CATALOG_INSTANCE="V\$INSTANCE" ...
try this


CATALOG_INSTANCE="V\$INSTANCE"

V_INSTANCE_NAME=`sqlplus -s ${APPS_USR_PSWD} <<
set pagesize 0 linesize 256 feedback off verify off head off echo off
...
1,971
Posted By jville
That worked like charm, and thanks for the speedy...
That worked like charm, and thanks for the speedy reply !!!
1,971
Posted By jville
Global replace with perl in bash
I am newbie to perl,
I am trying to use the below syntax to replace globally a string with a variable.



$ bash -version
GNU bash, version 2.05b.0(1)-release (powerpc-ibm-aix5.1)
Copyright...
1,132
Posted By jville
mkdir -p tie_n_suite/{HR,Manufacturing,sales}
mkdir -p tie_n_suite/{HR,Manufacturing,sales}
1,973
Posted By jville
test=`awk '{if($1!=$2) print 1; else print 0}'...
test=`awk '{if($1!=$2) print 1; else print 0}' time_test.tmp`

echo $test
1,242
Posted By jville
that explains it. globbing was the culprit in...
that explains it.
globbing was the culprit in this case. I had a file with 'w' in directory where I was executing this command. Thanks for your help !
1,242
Posted By jville
Different behavour with "tr"
I am getting different output with the 'tr' command in bash
I am using
Linux:
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Bash version:
GNU bash, version 3.2.25(1)-release...
813
Posted By jville
cat filename | tr '\\' '/' > filename.mod
cat filename | tr '\\' '/' > filename.mod
3,571
Posted By jville
Suggestion: adding two new groups "sed" and "awk"
Majority of the questions are pertaining file/string parsing w.r.t

sed

or

awk

It would be nice to have these two as their own sub category under shell-programming-scripting which can...
1,203
Posted By jville
Simple listing directory question
I have a very basic question:
How do I list all the directories in the following order?
If I do ls -l I get different results than I want to achieve.



dir.1
dir.2
dir.3
dir.4
dir.5...
7,680
Posted By jville
ls -l | grep ^d # for directories
ls -l | grep ^d # for directories
1,616
Posted By jville
#ret=$(grep '$prmAttunityUser\=' test4.txt ) ...
#ret=$(grep '$prmAttunityUser\=' test4.txt )
#echo $ret
#$prmAttunityUser=ais $prmAttunityUser=ais
1,511
Posted By jville
#!/bin/bash ppts=/ticker/powerpointshare ...
#!/bin/bash

ppts=/ticker/powerpointshare

if [[ $(find $ppts -mmin -1 -type f -iname "*.ppt" ) ]]
then
./do_you_script.sh
else
exit
fi
1,321
Posted By jville
use ftp>prompt ftp> put...
use


ftp>prompt
ftp> put rowb1_cbp14_20111116.txt



Let us know what you get
2,377
Posted By jville
try to use it per your requirements #...
try to use it per your requirements


# database_size.sh
#!/bin/bash
# source your DBA profile here which will set the sqlplus in PATH
# you can export DBAUSER/PASSWD of the database in the env...
13,107
Posted By jville
run this under the directory animal find...
run this under the directory animal


find -iname "*" -exec grep -li "pet" {} \; | grep -v archive
3,052
Posted By jville
try this one a=`sqlplus -s...
try this one



a=`sqlplus -s $db_user/$db_pwd@$db_sid << EOF
set pagesize 0 feedback off verify off heading off echo off
select ACK_PARTY_NAME,bus_event_seq_nbr from bus_event where ...
1,093
Posted By jville
use cat file1 file2 file3 >>...
use


cat file1 file2 file3 >> final_file.txt
871
Posted By jville
try this .... you are missing an "Else" if...
try this ....
you are missing an "Else"

if [[ -s $1 ]]
then
echo "File $1 FOUND!"
exit 0
else
echo "File $1 NOT FOUND"
exit 1

fi
8,879
Posted By jville
you can use FTP to get file from mainframe ...
you can use FTP to get file from mainframe

https://www.unix.com/shell-programming-scripting/165597-automated-script-look-files-ftp-server-location.html
...
2,262
Posted By jville
you can put this script in cron for automation ...
you can put this script in cron for automation


ftp -v -n $FTP_SERVER << EOF | tee $LOGFILE
user $FUSER $FPASS
cd $FILE_LOCATION
dir $FILE_TO_BE_FTPD
quit
EOF

grep $FILE_TO_BE_FTPD...
Showing results 1 to 25 of 99

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