The Terminal on Mac: Coding
So found this C code online and need to compile it in Terminal on Mac. Here is the code: Code: #include <stdio.h> #include <math.h> int option; char q; int number; int currentsum; int...
View ArticleExtract batch based on condition
HI, I have a file as mentioned below. Here one batch is for one user id.Batch starts from |T row and ends at .T row. I want to create a new file by reading this file. The condition is for record...
View ArticleLookup horizontally and vertically and calculate counts
Hello, Please help create the following report. I have a matrix Code: - S1 S2 S3 S4 M1 AA AA TT - M2 AG AG AA GG M3 GG TT - - a first lookup table Code: M3 chr7 4.456 M1 chr7 28.9 M2 chr8 129.678 a...
View ArticleNew user needs help with bourne shell script
This is my question, below the question is the template Write and execute a Bourne shell script called homework that will From within the script, create three background processes: a) (2 points) one...
View ArticleNeed to write a shell script
Hi, I need to write a statement which will read a data from a specific line based on condition and then read related lines to delete. For example: Code: |T20150322 100930290 208940000 598000080...
View ArticleParameter getting truncated using stanzaget
Hi, My script reading parameters from a parameter file using stanzaget . (runs on ksh ). One of the paramter is collection of unique numbers separated by comma and it is lengthy. Parameter file looks...
View ArticleHow can i list files above 5 days old?
HI how can i list files above 5 days old i want to keep only last 5 days application logs Regards, Ben
View ArticleLeap second for year 2015
I hear the Leap second for 2015 will occur on June 30 at 23:59:60 according to the wild rumours from internet the expected impact ranges from crashing to hanging servers. Can anybody share their...
View ArticleDisplay the .csv extension files based on .done extension fine
Hi All, I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing. 1.I need to display the .done files from the directory. 2.next i need to search...
View ArticleCertification in UNIX
Hi friends, I am working in a IT company. I was trained on unix. Now i have completed one year in unix domain(support) . And now i have planed to do a certification and move to next level. So kindly...
View ArticleBash script to replace text file from a lookup file
Hi. I need assistance with the replacing of text into a specific file via a bash script. My bash script, once run, currently provides a menu of computer names to choose.The script copies onto my system...
View Articlesed replace nth characters with string
Hi, I hope you can help me out please? I need to replace from character 8-16 with AAAAAAAA and the rest should stay the same after character 16 Code: gtwrhtrd11111111rjytwyejtyjejetjyetgeaEHT...
View ArticleRandom number generating script?
Having a hard time with this. Very new to scripting and linux. Spent all sunday trying to do this. Appreciate some help and maybe help breaking down what the syntax does. Create a Bash program. It...
View ArticleHPUX nsswitch.conf issue
Hi all, There wasn't nsswitch.conf file in my HPUX server. So I copied /etc/nsswitch.files to /etc/nsswitch.conf and changed the content like below. Code: passwd: compat group: compat...
View ArticleAdd 8 columns at the end of .csv file using awk
Hello all, I have a .csv file of 16 columns consists of bunch of numbers. Code: 6.45E+01 1.17E+01 8.10E+04 8.21E+01 8.50E+00 1.20E+01 1.02E+01 1.88E+01 1.86E+04 3.53E+03 1.09E+07...
View ArticleCase Insensitive with ls command
Hi. Is it possible to list the case insensitive pattern with ls? For example Code: ls -lrt *test* that should list both TEST.txt and text.txt Thank you.
View ArticleCrontab utilities
Hi gurus/lead, I have one doubt in crontab. I have shell script source code in one server. where I don't have priviliges acess R/W the shell script in that server. how can I setup the crontab to pick...
View ArticleSending email in shell script
Can anyone help me out how to send the email without the word success while sending to the recipient. Code: echo "success" | mailx -s "webshell instance has been started noiw" implementation@tkcl.com
View ArticleFailed password for invalid user
Dear All , I have created a user named X and gave sudo permissions for it , So that it can access some commands as root. This particular user can login to the server using SSH login through putty any...
View ArticleHow to send Two different password in Single script, having same username..?
Hi Team, i want to input two password for single node like pass1/pass2 one of the pass1 is working some node and pass2 is working for some nodes . For nodes having pass1 i have to run different script...
View Article