Bash script to compare 2 file
Hello Friends please help me to create script to compare 2 fiile which has rpm info . File 1: Code: glibc-2.12.1.149.el6_6.5.x86_64.rpm glibc-common-2.12-1.149.el6_6.5.x86_64.rpm File 2 : Code:...
View ArticleWindowss batch launcher (Oracle .sql and Linux .sh scripts) available here
Hi! I made a windows batch launcher that is capable of: - Launch a .sql file on multiple Oracle TNS destinatios - Launch a .sh command on multiple servers Hope you find it useful, it has some features...
View ArticleExternal variable to sed command
Dear all, I am starting to write script which should take the FILE from the directory and change the value in the given config-file (CONFIGFILE). HOwever, there seem to be issue with passing external...
View ArticleAdding timestap to filename using perl
Hello, I am trying to create a file in windows and i want the filename to have timestamp as well but something is wrong and i can not understand waht. The code that i use is the following Code:...
View Articleawk split command to get the desired result
Dear all, I am using the awk 'split' command to get the particular value. Code: FILE=InputFile_009_0.txt       Temp=$(echo $FILE | awk '{split($FILE, a, "e_"); print a[2]}') I would like to have...
View ArticleVariable not passed to the sed command
Hello, I am writing a script [1] which is not giving the desired result. When I check the content of the 'InputFile_009_0.sh'[2], it shows following with missing Index in this command Code: sed -i...
View ArticleScript to match lines in screen
I'd like to ask people who knows bash scripting to write me a script which would open a specific screen and match lines. Here is algorithm I'm thinking about.Find SCREENS named name1, name2.... and...
View ArticleFind: filename in every subdirectory matching a pattern
Hi, I have multiple directories built in following manner Code: /app/red/tmp /app/blue/upd /app/blue/tmp /app/green/tmp /app/red/upd /app/green/upd I have filenames having pattern ONE.XXX.dat...
View ArticleCompare between current and next line and print
Dear All I want below to compare two Consecutive line(i.e. current and next line). Based in that i need OP. Below is the IP file in that in i find "M" and if in next line i find "*" then i need both...
View ArticleHigh swap utliization on database servers
Hello, There is high swap utilization on database servers.Please refer to below output and suggest if there is anything wrong or any parameter can be further tweaked. Code: For B: Â Â root@B:/# vmstat...
View ArticleMatch and copy by text
In the attached .txt file, I am trying to match $5 with $1 and copy $4 to $7. That file was created using: Code: awk 'BEGIN {OFS="\t"} {sub("chr","",$1)} {print $5,$2,$3,$1,$4,$7} {print $6,$3,$2,$1}'...
View ArticleSTARTTLS not being offered
STARTTLS is not being offered by sendmail when I telnet to the local port on the localhost. STARTTLS is compiled into sendmail. I have valid certificates, pointed to in the .mc file, built to a .cf...
View ArticleHow to avoid "Too many arguments" error, when passing a long String literal...
Hi, I am using awk here. Inside an awk script, I have a variable which contains a very long XML data in string format (500kb). I want to pass this data (as argument) to curl command using system...
View ArticleUrgent - issue in replacing >
Hi Gurus, I am having trouble in replacing > symbol in a text line . I have number of special characters in this line like /,\,> and " etc. the line looks something like Code: <ATTRIBUTE NAME...
View Article[Ubuntu / PERL ]Problem installing WWW::Mechanize mod
Hello everyone, I've got some problem intalling a perl module. The installation is well done as you can see below. Code: gueg@ux31:~$ sudo apt-get install libwww-mechanize-perl Lecture des listes de...
View ArticleProblem on SQLplus command ""bash: sqlplus: command not found""
Hi all, i face an error related to my server ""it's running server"" when i use sqlplus command [oracle@srv1 bin]$ sqlplus bash: sqlplus: command not found the data base is up and running i just need...
View Articleawk : split file and rename and save in path according to content
Hello, I'm using Windows 7 ; sed, awk and gnuwin32 are installed. I have a big text file I need to manipulate. In short, I will have to split it in thousands of short files, then rename and save in a...
View ArticleMatch partial text
I posted the incorrect files yesterday and apologize. I also modified the awk script but with no luck. There are two text files in the zip (name.txt and output.txt). I am trying to match $2 in name.txt...
View ArticleFORTRAN error *** glibc detected ***
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I'm doing...
View ArticleBackups and restores in RHEL
Hi, I am new to RHEL. and started exploring/learning RHEL from last few months. I understood LVM and other system admin concepts. But i did not get a chance to explore backup/restore options in RHEL....
View Article