Comparing multiple network files (edge lists)
I want to compare 4 edge-lists to basically see if an edge is present in all 4 networks. The issue is that an edge A-B in one file can be present as B-A in another file. Example: Code: Input 1:...
View ArticleHow to add second variable in awk nested if condition?
Hi Gurus, I have a command to assign value based on input value. current condition is Code: "if pattern matches "case", then assign "HOLD" else "SUCC" right now, I need to add one more condition...
View ArticleHow to monitor some UNIX process and send notification in every 10 minutes?
Hi Unix Members, Can anyone guide me to write one shell script to monitor the attach screen processes and when interrupted mail us. , like the processes - /bin/ciserver , /bin/clock , /bin/cserver ,...
View Article/var/log/btmp size 2.2Gb daily
Hello, One Fedora server is facing the issue that daily /var/log/btmp grows to 2.2Gb or more. I need your help to determine the cause and isolate it. Thank you!
View ArticleClipping -awk
I have this infile: Code: >Sample23 acagtagaca-atagacgatggagagacatgaggcccaaaattt >Sample-123 --agtagacagatagacgatggagagacatgaggcccaattt-- >Sample23 Freq 45...
View ArticleShell script for alert
Hi Experts, Im new in shell script , please help to achieve the below requirement, We have some replication setup in unix server, in that if there is any exception or error occurs immediately the...
View ArticleHelp in modifying a PERL script to sort Singletons and Duplicates
I have a large database which has the following structure Code: a=b where a is one language and b is the other and = is the delimiter Since the data treats of language, homographs occur i.e. the same...
View ArticleAt command not running out of hours
Hi All, new to the forum and new to Unix but I have an issue which is annoying on a new level. I have included a short and full version for anyone needing more information. Short Version I am running a...
View ArticleAwk: problem for loop through variable
Hi, input: Code: AAA|1 my script (the function is just an example): Code: gawk 'BEGIN{FS=OFS="|"} function repeat(str, n, rep, i){ for(i=1; i<=n; i++) rep=rep str return rep } {...
View ArticleExtracting data from multiple lines
Hi All, I am stuck in one step.. I have one file named file.txt having content: Code: And SGMT.perd_id = (SELECT cal.fiscal_perd_id FROM $ODS_TARGT.TIM_DT_CAL_D CAL FROM...
View ArticleRemote file transfer between Linux and Windows
Hello, I have a file, say details.txt on my windows machine. I want to copy it to linux machine through a shell script and edit the file and transfer the file back to windows machine. (All I want to do...
View ArticleCompress folders older than x days
hello everyone. in /opt/abc every night there is a new folder created. in that folder there is aseries of files created for that day. i would like to run a script every Sunday night at 02:00 to...
View ArticleSelf made monitoring application
Hi.. Looking for advice / feedback Work in IT in an operational team, number of years ago, all monitoring was manual, vast checklists for unix checks, checking space, checking application processes,...
View ArticleSetting up a home network for learning Linux
I am working on learning Linux, and somebody suggested setting up Linux on a separate computer, and searching for answers to whatever may be needed, on a different computer plugged in to the Internet....
View ArticleExecuting java .jar from UNIX script
I have a .jar placed in my Unix directory. The .jar creates a .csv file .I want to execute the .jar and place the output file in a target Unix directory. The Unix Script is as follows. The issue that i...
View ArticleConcat String with variable after a 'grep' and awk
Here is the structure of my file: MyFile.txt Code: g-4.n.g.fr 10.147.243.63 g-4.n.g.fr-w1 Here is my sript: test.sh Code: #! /bin/sh ip=10.147.243.63 worker=$(grep -e $ip $1 | awk '{ print $3;...
View ArticleHow to restart a service without root access.?
hi , can anyone please tell me to how to restart a service without root or i need a root access for it. as a user i am getting this type of error : Code: nkchand@(tendcer0h1) nkchand $ service...
View ArticleRecorder number of process per user
Hello Team, I would like to use a shell script that run each 15 minutes in order to recorder the number of process per user I request your help in order to build an awk script under Solaris from the...
View ArticleSelecting random columns from large dataset in UNIX
Dear folks I have a large data set which contains 400K columns. I decide to select 50K determined columns from the whole 400K columns. Is there any command in unix which could do this process for me? I...
View ArticleFORTRAN program to extracting column
Dear folks I have a large data set which contains 400K columns. I decide to select 50K determined columns from the whole 400K columns. Is there any suggested fortran program which could do this process...
View Article