Quantcast
Channel: UNIX and Linux Forums
Browsing all 16232 articles
Browse latest View live

Transpose matrix based on second column using awk

Hi, Is it possible to transpose the matrix like this using awk ? Many thanks in advance Input Code: abc    Name_1  0 abc    Name_2  1 abc    Name_3  2 abc    Name_4  0.4 def    Name_1  0 def    Name_2...

View Article


WARNING! 16126 bare linefeeds received in ASCII mode

I am doing FTP from a server and getting below ERROR: Code: WARNING! 16126 bare linefeeds received in ASCII mode File may not have transferred correctly. I looked into web and found that I may need to...

View Article


No activation email received

I have tried to register today with the username BatterBits, but have not received the activation email I do not live in any of the restricted countries - unless the UK has suddenly become a threat!...

View Article

Modifying the shell script to select pattern

Hello, I have script which work 70% of the desired task [1], the output from script.sh is following [2], however the desired output I require is following [3]. Any piece of suggestion would be great.....

View Article

Bashrc File - Conditional Command Execution?

Hello All, I was wondering if there is a way to execute a command in my ".bashrc" file based on how I logged into the PC? I was thinking maybe there is a way to check how the user (*myself) logged in,...

View Article


How to access Temperature Sensor on Sun T6300?

Hello all, I have a Sun T6300 and I want to read the temperature sensors that are built into the boards. I ran "prtdiag -v" but, at the "Enviromental Status" it seems to be getting stuck. Code:...

View Article

To print from the first line until pattern is matched

Hi I want to print the line until pattern is matched. I am using below code: Code: sed -n '1,/pattern / p' file It is working fine for me , but its not working for exact match. Code: sed -n '1,/^LAC$/...

View Article

Who can help me?

Hi guys i m just starting with unix but actually i need to parse this log ... Statistic log. Code: 2015-02-10 10:00:03,474|INFO |EMT-(00) |> [9] KPI # trasm:1266245958 retrasm:439137 dropped:36504...

View Article


Reset $1 variable

Hi all, I'm using a scipt with one input and one output. I'm referring to the input by $1 after executing a command line, I'm getting the output via $1. Normally, the $1 shouldn't get the same values...

View Article


I want query output to send on mail using table tag and output should be in...

Code: #! /bin/ksh #[[ -f ./.profile ]] && . ./.profile 2>/dev/null if test -f '.profile'; then . ./.profile; fi; #. .profile LOG_DIR=/app/rpx/jobs/scripts/just/logs   sendEmail()     {...

View Article

Creating Installer and/or Package

I have an open source tool I am working on. As of right now, version 1 is complete but it's a set of programs in a directory. What I would like to do is create a flexible installer or package that puts...

View Article

Help with writing a script to run java commands in sequence in UNIX

Hi, Brand new to these forums, and I hope that someone can help me out. I'm trying to run the following command in UNIX Code: java -jar GenomeAnalysisTK.jar -T SplitSamFile -dt NONE -R reference.fa -I...

View Article

Please help this syntax error !!!

Please help with this syntax.....somehow not able make it work.... Code:   /export/home/mytmp/abc> ls -ltr total 9 -rw-r--r--  1 ca7prod  ftpusers    1230 Feb  7 10:42 test_abc.dat -rw-r--r--  1...

View Article


Get some data from a list, using grep or sed

Hi, my dear friends, I have to use very frequently the command of qsum to check the free node for job submitting. However, qsum always shows all the nodes regardless of their status. Code: occupied...

View Article

Image may be NSFW.
Clik here to view.

Configuring audit.rules to exclude a certain compiler

Hey all, Issue at hand is this. I have a Redhat 6.5 server 64b locked down with selinux enforcing, and audit rules and config shown in the attachments. My issue is that even though the system is...

View Article


How to get the created file to be outputed?

Hi , I am trying to get the log of Datastage job and email it to the user with the log as an attachment and body in the email.every time i run the script one email is sent to the specified user id as...

View Article

Passing single quotes to grep

Hi, I have a grep command which searches if a particular word ends in a pattern Code: grep 'ee\>' * The above command searches for any word that ends with ee across files and works as expected. I...

View Article


Is nagios monitoring tool supported on AIX 7.1 ?

Hi, is any one using nagios monitoring solution on AIX ? if yes, is it supported on AIX 7.1 TL 03 as well ? I tried to search online and unix.com , could not find it. Thank you

View Article

Uuencode & Mailx

hi, i am trying to send a pdf attachment which has a name of 200 characters using uuencode and mailx. But the email is not getting delivered. Code: uuencode <filename.pdf> <filename.pdf> |...

View Article

Image may be NSFW.
Clik here to view.

Find Command Include Sub Directory

This script writes the output files to FILES but I don't want to exclude all directories from ABC_CHQ and LYS_ADV, I want to include one sub directory name process which is under ABC_CHQ and LYS_ADV in...

View Article
Browsing all 16232 articles
Browse latest View live