Search Results

Search: Posts Made By: BeefStu
1,167
Posted By BeefStu
Apologies, the original file should be 100|XXX ...
Apologies, the original file should be 100|XXX

Basically I want to increment the first col with the next number and keep the rest of the line
1,167
Posted By BeefStu
Appending to file with new ID
I have a file that looks like this:



1|A
2|B
3|C
...
...
100|A



I would like to take the last line in the file and add +1 to the number so
the output looks like this



...
1,440
Posted By BeefStu
sed help adding parenthesis
I have the following data and want to put parenthis around the numbers:



PARTITION PERIOD_MIN VALUES LESS THAN 10649 TABLESPACE ODS_DAILY_MF_AUM,
PARTITION PERIOD_10649 VALUES LESS THAN...
2,405
Posted By BeefStu
awk pattern matching
can somebody provide me with some ksh code that will return true if my the contents in my variable match anyone of these strings ORA|ERROR|SP2

variable="Error:ORA-01017: Invalid...
14,196
Posted By BeefStu
ksh processing options and parameters
I have a requirement where I need to process both options and parameters.

command line call

ie xxx.ksh -sid TEST1 -search_str LOCKED user1 user2 .....

I am using the following peice of...
999
Posted By BeefStu
Parsing values
can anybody tell me why this code does not work?



cat x1.ksh

#!/bin/ksh
set -x
echo "|$#|"
while [ $# -gt 0 ]
do
case $1 in
--+([kK])
shift
K=$1
...
7,270
Posted By BeefStu
alist bulleyes.. thanks. did not even notice that
alist bulleyes.. thanks. did not even notice that
7,270
Posted By BeefStu
not sure what you mean as I am printing the...
not sure what you mean as I am printing the values in func1



echo "Here I am 2 |DB_UID=$DB_UID|"
echo "Here I am 2 |DB_PWD=$DB_PWD|"
echo "Here I am 2 |ORA_USER=$ORA_USER|"
echo...
7,270
Posted By BeefStu
sun solaris 2.10.. this also needs to work on...
sun solaris 2.10.. this also needs to work on Linux but I have not got to that yet.
7,270
Posted By BeefStu
variables and functions
can somebody telll me what my values are not being displayed in the function func1()



{oracle@im4s012nz1_DUMMY}$ cat x1.ksh
#!/bin/ksh
getpwd()
(
set -x
....
1,510
Posted By BeefStu
Bartus, Thanks for your reply.. the code...
Bartus,

Thanks for your reply.. the code works great. Since I don't have perl
installed on all my machines, is there a similiar solution using sed or awk?
1,510
Posted By BeefStu
XML parsing with a variable
I have the following XML



<Audit_Type>1</Audit_Type><Session_Id>34505863</Session_Id>
<StatementId>1</StatementId><EntryId>1</EntryId>...
61,272
Posted By BeefStu
that person is not around and it did not make...
that person is not around and it did not make sense to me either (ctime -1) so that is why I asked. I will do some more testing and see where it
leads me
61,272
Posted By BeefStu
I have code that does this: find...
I have code that does this:



find ${AUDIT_DIR} \( -name "*.txt" -o -name "*.xml" -o -name "*.aud" \) -ctime -1 > /tmp/list.out



Trying to figure out what this does and if the -ctime...
61,272
Posted By BeefStu
find -ctime
I know that find -ctime +1 will find ALL files that have been modified
that are greater than 1 day old and -ctime 1 will find files that are
ONLY 1 day old -ctime -1 mean files that are less than...
3,364
Posted By BeefStu
Here is a start.. You can figure out the rest ...
Here is a start.. You can figure out the rest


#!/bin/ksh
IN_DIR=/tmp/junk

for f in `ls -1 $IN_DIR`
do
ext=$(echo $f | cut -d"." -f2)
if [ "$ext" = "doc" ]
then
...
18,800
Posted By BeefStu
if you want to ignore the error try using the...
if you want to ignore the error try using the force option with the mv command mv -f .....
16,711
Posted By BeefStu
You need a space between the variable and the...
You need a space between the variable and the bracket
1,270
Posted By BeefStu
crontab question
If I want to run a process every 30 mins except for 3-4 where I want to run
every 5 mins I know I can do this with 3 entries.



30 5-23 * * * "echo "Hello"
30 0-3 * * * "echo "Hello"...
3,676
Posted By BeefStu
Invoke sqlplus and play with these parameters ...
Invoke sqlplus and play with these parameters



set long ...
set longchunksize ...
set linesize ...





Hope this helps
23,138
Posted By BeefStu
ksh, difference between double bracket and single bracket
Can somebody tell me the difference between double brackets and single
brackets, when doing a test.

I have always been acustomed to using single brackets and have not
encountered any issues to...
1,113
Posted By BeefStu
parsing
Can some body show me a sed command to remove everyhing upto a '/' and
leave the rest of the line.



cat data.out
This is the directory /tmp/xxx/yy.ksh

I only want to get the fullpath...
1,527
Posted By BeefStu
My code was to give you a basic understanding on...
My code was to give you a basic understanding on how to solve your issue since you said you could not get cut to work.

Your code is more effiencent since it only calls echo and cut once as...
10,923
Posted By BeefStu
If you have execute permissions on the script you...
If you have execute permissions on the script you should be able to run it.
It looks like your missing the first "/" in your path.. Try
Directory="/home/users/work/"
1,527
Posted By BeefStu
cat xx.ksh #!/bin/ksh ...
cat xx.ksh

#!/bin/ksh

data="@@XYMONDCHK-V1|.acklist.|developer_instead|rendy_google_yagom|1323977582|1323979382|1323979382|1|admin|test case"

word1=$(echo $data | cut -d'|' -f1)...
Showing results 1 to 25 of 135

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