Format output in AWK command
hi Friends , I have a file as below s.txt Code: 1~2~~4 2~6~~7 3~8~~9 t.txt Code: 1~2~~4 2~5~8~7 3~8~~7 header for both files is common header.txt Code: KEY~DIS~NOT~KAT to compare 2 files i have used...
View ArticleT4-1/Solaris 11 and sudden 50% performance drop
We have a SPARC T4-1 server, running Solaris 11, and it's doing some pretty extensive parsing on roughly 100GB data set. All was well still few weeks ago, when I was testing the performance, I was...
View Articleproblem in retaining values after each loop
Code: use strict; use warnings; open (my $fhConditions, "<input1.txt"); #open input file1 open (my $fhConditions1, "<input2.txt");#open input file2 open (my $w1, ">output1"); open (my $w2,...
View Articlefiltering and formatting the output
Hi Team, I have input file like below. HTML Code: [SYSTEM.css.interfaces] UNDEF : SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_CREATE_SUB_KEY, OTHER_PERMISSION : PROCR_READ,...
View Articletftp batch mode within bash script
Hi, I put the necessary tftp commands into a batch file and I can run tftp by $ tftp < tftpbatchscript in bash command line and then successfully exit. Now, I want to put a line which does the same...
View ArticleHow delete characters of specific line with sed
Hi, I have a text file with some lines like this: Code: /MEDIA/DISK1/23568742.MOV /MEDIA/DISK1/87456321.AVI /MEDIA/DISK2/PART1/45753131.AVI /IMPORT/44452.WAV ... I want to remove the last 12 characters...
View Articlei can not post new thread
Hi scoot Hope you are doing well!! I didn't post any new thread, is their any problem in my access could you please check it and let me know. Previously posted threads was one of my interview question...
View ArticleBash regex help
I've been using the following regex below in a bash script on RHEL 5.5 using version GNU bash, version 3.2.25(1)-release I've tried using the script on RHEL 6.3 which uses GNU bash, version...
View Articlefind duplicate string in many different files
I have more than 100 files like this: HTML Code: SVEAVLTGPYGYT 2 SVEGNFEETQY 10 SVELGQGYEQY 28 SVERTGTGYT 6 SVGLADYNEQF 21...
View ArticleHow to get values from href in HTML to sh
Hi, This is a part of my code: Code: case "$1" in home) echo '<h2> Select a student: </h2>' echo '<br>' for stunum in $(ls ./) do echo...
View ArticleAllowing Connections to a Specific Port
Hello All, I've come here as a last resort. I've been messing around with this for the last few days now and can't figure out what is going on, and why it isn't working... I have NRPE Running on a...
View ArticleCapture Output from an "Interactive" Command?
Hello All, I was wondering how to capture the output of an "interactive" command that is run...? I think "interactive" is the word I'm looking for. For example, commands like "top" and "iftop"... The...
View ArticleExpect scripting telnet stop on bad username or password
I am trying to build and expect script to log into multiple aix boxes and change password. I need for the script to terminate if it cannot log into a server because the username or password is wrong....
View ArticleVIOS IP address - separate vlan for vios servers ?
Hello, Lets say for simplicity that I do not use any vlan config inside my server - one lpar group use hea physical port1, another group hea physical port2. Physical port1 configured as vlan1 on...
View ArticleIs it better/possible to pause the rsyncing of a very large directory?
Possibly a dumb question, but I'm deciding how I'm going to do this. I'm currently rsyncing a 25TB directory (with several layers of sub directories most of which have video files ranging from 500 megs...
View ArticleNeed help with awk
Code: #!/bin/bash ARCHIVE="$PWD" #ARCHIVE="/home/kschmidt/public_html/Files/DrMathArchive" echo `ls "$ARCHIVE"` ls "$ARCHIVE" | while read DIR do # echo $DIR # [ -d "$DIR" ] || continue #...
View ArticleGive inputs externally to awk script
Hello to all, Please some awk expert could help me. If I want to run an awk script as "command" give it inputs externally I do: Script.sh Code: Input="$1" # "$1" is the input that will be given to the...
View ArticleControl M user permissions on Red Hat Linux
All, Requirement: Permissions Required for Control M on Linux I am using the Linux as the operating system. I am told to get an user configured for Control M on Linux. The user would be an...
View Articlesubstitution to mulitple files
Hello all, I am trying to make a script that will apply a substitution to any number of files given on the command line. Example would be ~/Unix/script/subst car boat myFile1.txt myFile2.txt...
View Articlesort script
I have need of a sorting script that will sort a file of tab delimited data on multiple columns. I often do this kind of thing in excel, but I have need of something more automated. I guess the syntax...
View Article