Search Results

Search: Posts Made By: jack1981
7,102
Posted By jack1981
Returning a BLOB to Ksh
Hello,

I am currently using a small script to test out part of a larger script I will use llater on. I am querying Oracle 10.1 to return a column which holds a blob value. This value needs...
1,450
Posted By jack1981
What does this actually do?
2&> /dev/null

What does the ampersand do in this case?

Regards
1,667
Posted By jack1981
Not sure if this bash script is of any use to you...
Not sure if this bash script is of any use to you but it will print all users and processes.


finger |
awk '{ if (NR > 1) print "echo " $2, $3}
{if (NR > 1) print "ps -U ",$1} ' > myfile
sh...
6,775
Posted By jack1981
Might be of some use
Hi,

I created a program that emualted the rm command in UNIX but stored the data in a seperate directory after deletion, a bit like the recycle bin in windows. This isn't the finished version but...
8,418
Posted By jack1981
Hi, yes. Like this: new file ...
Hi, yes.

Like this:


new file

CA-94061-TSS Tkb Sport Shop
CA-95133-V Vollyrite
TX-77007-WAD Wheels And...
8,418
Posted By jack1981
merging multiple log files
Hello,

I have 8 sql loader scripts which produce ".bad" file if there is any errors, how can I join the contents of these files together in one column?


file 1

CA-94061-TSS Tkb Sport...
1,448
Posted By jack1981
If your waiting on a reply then I would post the...
If your waiting on a reply then I would post the script first or you have little chance.
6,288
Posted By jack1981
Hi, I haven't tested it but don'y you have...
Hi,

I haven't tested it but don'y you have to double quote your sed scripting instead of single when using variables?
sed -e "s/${line1}/${line1_m}/g" prod_hier_1234.txt > test.txt
6,257
Posted By jack1981
That should do it
That should do it
20,834
Posted By jack1981
How many files are in your current direcotry? ...
How many files are in your current direcotry?
do a ls -l

You could try a rm * to delete all files in your directory providing you have manually moved the files you want to keep before hand.
20,834
Posted By jack1981
Have you tried to move the file which will rename...
Have you tried to move the file which will rename it and then delete it?

like:

mv "ab123 v2.12.09 with revision marks.doc;#" new_file

then rm new_file
20,834
Posted By jack1981
echo $SHELL
echo $SHELL
20,834
Posted By jack1981
Not sure. I am using bash and I created a file...
Not sure. I am using bash and I created a file with the same name as your and it deleted with rm *ks.doc no problem. What shell are you using?
20,834
Posted By jack1981
Depending on what other files you have on your...
Depending on what other files you have on your system then this will work fine.

rm *ks.doc

If there is other files which include ks.doc then you might have a problem, if not then you will be...
5,999
Posted By jack1981
You just did. Select the correct part of the...
You just did.

Select the correct part of the forum first, for instance you are in shell scripting at the moment. Pick a fitting subject and then give a detail explantion of your question.
17,027
Posted By jack1981
Thanks for the info. So shred works by over...
Thanks for the info. So shred works by over writing the data and then removing it so even when still on disk but out of OS it can't be read in it's original form.

Cheers

J
17,027
Posted By jack1981
using putty client to connect to a redhat server...
using putty client to connect to a redhat server using the bash shell



Note that if you use rm to remove a file, it is usually possible to recover the contents of that file. If you want more...
25,736
Posted By jack1981
Its usually safer to put sed inserts command into...
Its usually safer to put sed inserts command into a file and then invoke the sed script with option -f.
17,027
Posted By jack1981
recovering files removed with rm
Hello,

I was reading the manual on rm and it states that when you use 'rm' the files are usual recoverable, how is this done?

Does it assume that a backup system is in place?

Cheers

Jack
9,930
Posted By jack1981
Can't you do it with adding this to the end of...
Can't you do it with adding this to the end of your command:

>dev/null

I am not on a UNIX box at the moment but i think it might work even with background jobs.

more info here...
15,991
Posted By jack1981
Hi Oliver, I did finish it. Here is the...
Hi Oliver,
I did finish it.

Here is the final copy.


#!/bin/bash
# A program to emulate the "rm" command in UNIX.

# INITIALIZE VARIABLES
NO_ARGS=0
FLAG_R=""
FLAG_F_I=""
FLAG_V=""...
3,685
Posted By jack1981
Hi, thanks, I got it sorted. ...
Hi,

thanks, I got it sorted.


/match/ { i\
insert after match
}
3,685
Posted By jack1981
appending with sed based on matched pattern
Hi,

I want to know if you can input with sed but instead of specifing a line number like below I wan't to be able to insert based on a specific word or patttern.



10i\
Insert me after...
12,057
Posted By jack1981
Sorted it! damn, had my "fi's" in the wrong...
Sorted it!

damn, had my "fi's" in the wrong place.

I am done apart from testing, I would just like to say a big thank you for any help you guys provided!
12,057
Posted By jack1981
Hi, I have my problems fixed, the only...
Hi,

I have my problems fixed, the only problem that still remains is that if the file isnt a directory and options r and i are not set then its not passing through the function to the else...
Showing results 1 to 25 of 42

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