Search Results

Search: Posts Made By: rockf1bull
13,945
Posted By rockf1bull
Using multiple values for single variable in a loop
Hello Guys,

I have a small loop problem as below.

I have 3 different values to be used while running the same script -
va1="some-value1"
va2="some-value2"
va3="some-value3"

Now I want to...
6,251
Posted By rockf1bull
Thanks Scott and binlib for the quick answers. I...
Thanks Scott and binlib for the quick answers. I am in the mean time, making few modifications and will update this place once I am done, hopefully today.

What had happened was the user I am using...
6,251
Posted By rockf1bull
Problems with storing oracle sqlplus query output shell script
Hello everyone,

I have a RHEL 5 system and have been trying to get a batch of 3-4 scripts each in a separate variables and they are not working as expected.

I tried using following syntax which...
1,240
Posted By rockf1bull
@Corona688, Thank you very much and ssh -t...
@Corona688,

Thank you very much and ssh -t did the trick for me. It's working as expected. You won't believe it, but strangely I had tried it before and somehow it didn't work and now it does :D
...
1,240
Posted By rockf1bull
Small doubt for using wget cia SSH!!!
Hi Guys,

I have just ran into a small problem where I am trying to ssh to another server and the script does a wget on that server. Following is the syntax I am using though it's not working as...
15,740
Posted By rockf1bull
I have a diff version as 2.8.1 and OS is RHEL 5.2...
I have a diff version as 2.8.1 and OS is RHEL 5.2

Am checking further and would let you know shortly.

Thanks,
Morgan
15,740
Posted By rockf1bull
Help needed for diff to ignore a line with certain pattern
Hello Guys,

I request anyone to do me a small help in using diff command for following.

I am trying to compare two files for content and wish to keep the content after the comparison (The...
1,536
Posted By rockf1bull
Small Help required for merging two files per line!!!
Hi Guys,

Sorry to bother everyone again here, but I ran into a small problem that has been after me for some time now.

I have a file called file1.txt and has following content -

...
Forum: Red Hat 09-08-2011
2,179
Posted By rockf1bull
Sorting folder size not working
I am using du -h --max-depth=2 to get list of folders by size upto 2 levels down. Problem is I am not able to sort them in max folder size.

Normally this can be achieved by using du -k | sort -nr...
Forum: Red Hat 08-02-2011
1,464
Posted By rockf1bull
How to insert recursive words in a file on every line
Hi Guys,
If someone can help me edit my script using sed or awk that will be great.

I am trying to get a list of folders and their sizes upto 2 levels along with the week number by using...
Forum: Red Hat 07-15-2011
5,146
Posted By rockf1bull
Logrotate not removing old files
Hi Guys,

Need some help with the logrotate for one of our servers. I had setup a logrotation so that all files that go under old/ folder should be removed after one week. The log files are rotated...
Forum: Red Hat 06-24-2011
8,277
Posted By rockf1bull
Ok thanks for providing this information. ...
Ok thanks for providing this information.

Cheers,
Mondy
Forum: Red Hat 06-24-2011
4,322
Posted By rockf1bull
Thanks guys, it indeed worked!!! However, I...
Thanks guys, it indeed worked!!!

However, I was wondering if its possible for it to run like a loop in recursive folders.

Below is what I tried to do though it didn't work out and I got "syntax...
Forum: Red Hat 06-24-2011
8,277
Posted By rockf1bull
Can't convert 7bit ASCII to UTF-8
Hello,

I am trying to convert a 7bit ASCII file to UTF-8.

I have used iconv before though it can't recognize it for some reason and says unknown file encoding.

When I used ascii2uni...
Forum: Red Hat 06-21-2011
4,322
Posted By rockf1bull
Thanks Franklin, that was simply awesome and...
Thanks Franklin, that was simply awesome and worked straight away!!!

Though I am actually having a bit of a problem here -

While in a certain directory, when I do -

find . $(ls -tp | awk...
Forum: Red Hat 06-21-2011
4,322
Posted By rockf1bull
List all old files except 15 latest files
Guys,

Someone please guide me to tell me how do I print and later remove all old files in a folder recursively but keep only latest 15 modified files.

When I do - ls -tp | head -15

I get...
Forum: Red Hat 06-14-2011
3,048
Posted By rockf1bull
Copy certain file types recursively while maintaining file structure on destination?
Hi guys,

I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.

I...
Forum: Red Hat 02-16-2011
2,852
Posted By rockf1bull
Need some help on tomcat URL rewrite or mod_jk
I am trying to remove the context name from the url of my server.

Current URL - http://www.domainname.com/MyApp/

What I need to make is to make it avaialble at -
...
Forum: Red Hat 02-11-2011
4,762
Posted By rockf1bull
Hi Franklin, Just updating on your help for...
Hi Franklin,

Just updating on your help for the script the other day..

Amazing job once again and it has helped me a LOT!!:D

ls abc-accent*.log |
while read file
do
sed -n...
Forum: Red Hat 02-11-2011
66,875
Posted By rockf1bull
How to change sender email address in mail -s command
Just having trouble trying to figure out what the option is.

When I do

mail -s "Subject" someuser@example.com

I can't seem to specify "from" or "sender" option as I need it for my task....
Forum: Red Hat 02-10-2011
4,762
Posted By rockf1bull
Thanks Franklin and I actually just added more...
Thanks Franklin and I actually just added more sort parameters to get convert all upper case urls to lower case and then remove the duplicates thereafter using following -


ls -1 | tr '[A-Z]'...
Forum: Red Hat 02-10-2011
4,762
Posted By rockf1bull
Not sure how do I run that? It looks like a...
Not sure how do I run that?
It looks like a small .sh script to me.
So please tell me whether I should save it as a sh file with all duplicate entries in it to ge the final output?

Regards,...
Forum: Red Hat 02-10-2011
1,949
Posted By rockf1bull
Thanks Birei and I will report you the output in...
Thanks Birei and I will report you the output in few hours.. Too bad that we have some urgent meetings coming up and I don't have time to test this but can't wait for sure!!!

Thanks for the quick...
Forum: Red Hat 02-10-2011
4,762
Posted By rockf1bull
You have been my saviour again Frank and the...
You have been my saviour again Frank and the first script worked for me!!

I am yet to test the script part due to some meetings coming up ahead. Just can't express words when people provide so...
Forum: Red Hat 02-09-2011
1,949
Posted By rockf1bull
Help for capturing a URL from a line from large log file
Can someone please help me how do I find a URL from lines of log file and write all the output to a new file?

For e.g - Log file has similar entries,


39.155.67.5 - -...
Showing results 1 to 25 of 30

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