Get min and max value in column
Gents, I have a big file file like this. Code: 5100010002 5100010004 5100010006 5100010008 5100010010 5100010012 5102010002 5102010004 5102010006 5102010008 5102010010 5102010012 The file is sorted and...
View ArticleWill shell script executes in sequence
I have a shell script scheduled in cron job to run at every 1 minute which transfers files to remote machine and then move the files to backup folder. Code: cd /u01/app/ftp_tmp sftp user@hostname...
View ArticleNCR UNIX system v/386 release 4 recover root password
we have NCR 3455 system from long time as attached all information for server (images) , so we need your help to assist us to get root password which lost it , really we appreciate your efforts if you...
View ArticleGHOST glibc Security Vulnerability
Hello All, Just FYI please about GHOST glibc Security Vulnerability(not sure if this is posted already) which may help us to secure our systems. Following are the 2 links on same too from Redhat side....
View ArticleApache authz
Hi All, I have configured my Apache HTTP Server to authenticate users using SSL certificates and to forward the CN of the user from the certificate in the HTTP header to the backend server. The server...
View ArticlePrint before pattern
Hi all, i have file some, Code: $cat file1 1233312/ version 0120 2312/ version 0121 i need print only value before / e.g. Code: $cat file1 1233312 2312 Thanks you,
View ArticleCheck if file got created in less than 10 hrs
Dear Gurus, I want to check if file got created in less than 10 hrs in .ksh. Here is my requirement In $var5 : I'm storing file name In $var4 I have stored : select to_char(sysdate,'YYYYMMDDHH:MM:SS')...
View ArticleForeach: Words not parenthesized. csh
Just started shell scripting for the first time today :D Can anyone tell me why I get the error "foreach: Words not parenthesized." for my following code? The program takes in a list of arguments....
View ArticleShuffle Columns in Pipe delimited data
My sample data contains escape characters followed by delimiter. I'm stuck in writing awk comand to swap the columns. please help me out. Code: Sample Data: 12345678|ABN\|XYZ MED CHEM PTY....
View ArticleHow to mark the row based on col value.?
Hi Gurus, I have requirement to identify the records based on one column value. the sample file as below: ID AMT, AMT1 Code: 100,10, 2 100,20, 3 200,30, 0 200, 40, 0 300, 20, 2 300, 50, 2 400, 20, 1...
View ArticlePassing Parameters to Crontab
Hello Experts, I have a requirement to pass some parameters to Linux cron tab. For ex: My default cron entry looks like this as below: ------------------------------- Code: 55 10 * * --...
View ArticleHelp with Sudoers file
Hi using Solaris 10. trying to update /etc/sudoers file I need to add all the fist level operation team. This is what I have but it doesn't seem to work. Please help. Code: Error message sudo su -...
View Articleawk problem
The following two commands do not seem to work (they return empty lines): Code: find /a/b/c/d/* -type f -name '*.txt' | awk '{ggg=substr($0,72,4); print $ggg}' find /a/b/c/d/* -type f -name '*.txt' |...
View ArticleCompare file1 and file2, print matching lines in same order as file1
I want to print only the lines in file2 that match file1, in the same order as they appear in file 1 file1 Quote: c2 c23 c14 c22 file2 Quote: c14 CGAGGCTG c2 CAGAGAGG c20 CTCGACTC c22 CGAGGCTG c23...
View ArticleGrep : Filter/Move All The Lines Containing Not More Than One "X" Character...
Hi All It's me again with another huge txt files. :confused: What I have: - I have 33 huge txt files in a folder. - I have thousands of line in this txt file which contain many the letter "x" in them....
View Articleksh check for non printable characters in a string
Hi All, I am trying to find non-printable characters in a string. The sting could have alphanumeric, puntuations and characters like (*&%$#.') but not non-printable (or that is what I think they...
View ArticleHelp with replace comma with new line and repeat the content
Input file Code: G A G A,T A C A G,T,C T C . . Desired Output file Code: G A G A G T A C A G A T A C T C . . Do anybody know how to...
View ArticleHelp needed on ssh in bash scripting
HI I have the following requirement I have a script a.sh which will deploy files in multiple servers .The argument for the a.sh is abc.gz host1.conf where abc.gz is a zip file and one.conf will contain...
View ArticlePassword connection-less
Hi all! I need help in reconfiguring password connection-less on 3 servers. I had this feature on 3 servers, working fine for servers A, B and C, but for some unknown reason, and after a reboot was...
View ArticleDelete blank spaces and blank lines in a file
Hi Gurus, Somebody can say me how to delete blank spaces and blank lines in a file unix, please. Thank you for advanced.
View Article