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

Combine columns - awk

Need some help with this ... please Code: 60644,NJ090237_0263_GRP,NJ090237_0263_VIEW,NJ090237_0263_PSGRP,NJ090237_0263_GOLD_CSGRP,,06E:0_08E:0_09E:0_11E:0,0CE5,TDEV,34,VP_TIER...

View Article


Image may be NSFW.
Clik here to view.

Add a column to a file

Hi, I have this data file that contains: Code: 1Ā  Ā  Ā  Ā  A 2Ā  Ā  Ā  Ā  B 3Ā  Ā  Ā  Ā  C 4Ā  Ā  Ā  Ā  D 5Ā  Ā  Ā  Ā  E 6Ā  Ā  Ā  Ā  F 7Ā  Ā  Ā  Ā  G 8Ā  Ā  Ā  Ā  H 9Ā  Ā  Ā  Ā  I I want the results to be: Code: 1Ā  Ā  Ā  Ā  AĀ  Ā  Ā  Ā  A 2...

View Article


Get nth occurence of string from a file

I have file in which the data looks like this, Code: 01,0000000,xxxxxxx/Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  02,xxxxxxxx,yyyyyy/Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  03,test1,41203016,,/Ā  Ā  Ā  01,0000000,xxxxxxx/...

View Article

Using loop command in UNIX for converting column to row

Dear folks I have 300 files which one of them are looking like: Code: 1.SNP 0 0 1 0 I am looking for desire output: Code: 1.SNP 0 0 1 0 I used this below command to run all of the 300 file at the same...

View Article

Collapse linked values

please help, I want to group together all linked data pairs. If I have 10 pairs, each row showing col2 and col3 are linked. Code: R1 1 2 R2 1 3 R3 2 4 R4 3 4 R5 5 6 R6 8 1 R7 6 7 R8 9 10 Then I am...

View Article


Bsub command

Hi everyone, I must write a Linux script for a biological analysis. I have an example for that which involves the "bsub" and "bsub-o" command, respectively. I cannot find a description for this...

View Article

OS X shell script

hi all, i have 2 user profiles (fred, fredmoo) with filevault 2 enabled. i have the following bash: ## Get the logged in user's name userName=$(/usr/bin/stat -f%Su /dev/console) ## This first user...

View Article

100% full file system - error when trying to increase

Hi, I came across a situation where I had to increase a filesystem that was 100% full and received this error: Code: [root]/tmp[common]:chfs -a size=+5000M /tmp 0516-634 lquerypv: /tmp directory does...

View Article


Functions on csh

Just want to know whether we have function concept available in csh. Because am trying the below function it showing error. If function concept is not available what is the alternative solution. code:...

View Article


Do you trust your users to follow your instructions?

This happened a long time ago and some of the details may not be exact. Customer had obsolete hardware running an obsolete SCO OS and some type of database program with data scattered around the...

View Article

Questions about Solaris 10

I am new to solaris 10. I have a few questions 1) How do I check the current version of grub? 2) How do I update grub version 3) what version onwards supports GPT? Thanks

View Article

Noexec on /home

Hi all, I read in some documents that it is advised to use the mount option noexec also on /home . I can live with a nosuid but since I am writing scripts in /home and also execute them for testing...

View Article

Grep a specific process name

Hello, I want to grep a specific process named "TEST" in AIX but not only is it showing what I want but also listing others that have the similar name. How can I only list "TEST"? I've tried using...

View Article


Identify the folder is part of which mount point

Dear, I am using Redhat 6.6 . How to identify a given directory is part of which mount point.

View Article

CX_Oracle package for Solaris

Hi All, Please let me know if Cx_oracle module to connect and access DB through python scripting package is available for Solaris 10 ? I want to know if there is an Oracle released official package and...

View Article


Image may be NSFW.
Clik here to view.

Sudden Service Busy Alarms

Hi, I am getting service busy alarms on my machines which are using MongoDB every now and then. When the service busy alarm appears, I get the following errors on my mongo router logs. Code: Tue AprĀ  7...

View Article

Calculate Percentage

Hello, Ive got a bunch of numbers here e.g: Code: 6065 6094 6348 6297 6161 6377 6338 6290 How do I find out if there is a difference between 10% or more between one of these numbers ? I am trying to do...

View Article


Bash - filename and extension extraction

Hello. I have some error with my piece of code. Here the output : Quote: L : /etc/bacula/bacula-dir.conf L1 : bacula-dir.conf filename : bacula-dir <<<<conf>>>>>> 1...

View Article

How to add extra spaces to make all lines the same length?

Hello to all, I'm trying to format a file to have all lines with the same length (the length of the longest line) adding needed extra spaces at the end. Currently I have the awk script below that adds...

View Article

Bash-Completion, one list shown, the other not.

Heyas I'm trying to read out a file which contains a variable and use that list to complete a bash command. Difficult part on this is, that 2 (actualy 3) different lists are to be used, but the...

View Article
Browsing all 16232 articles
Browse latest View live