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

Starting a process remotely

Hello all, Please, i try to start cassandra remotely but it didn't work. i don't find cassandra process when using ps aux|grep cassandra Code: ssh -t root@g-8 -x "sshpass -p 'ubuntu' ssh -t...

View Article


Bash on CygWin

I am using CygWin to run a bash file but I am getting weird results. Code: #!/bin/bash mkdir CLEANDATA mv *FASTA CLEANDATA cd CLEANDATA ls echo "COMPLETE" And this is what I get Code: $ ./Pipe.txt...

View Article


Image may be NSFW.
Clik here to view.

Moving files into dirs corresponding to dates

I am trying to find a way to move files into corresponding date files. Code: i=0 while read line do     array[ $i ]="$line"     (( i++ )) done < <(ls) cd  $(echo ${array[1]}) echo ${array[1]}}...

View Article

Add items to ksh array

Hi I need a code help put below items in to array and display in order like this Thanks, Ashan Code: 0AD4  R2 03A1 000198701333 0AD4 R1 270B 000198701616 ------ Code: 0AD4 R2 03A1 000198701333 0AD4 R1...

View Article

Image may be NSFW.
Clik here to view.

The Alternate DC board for AudioScope.sh.

Hi guys... Well I have entered an area of partial insnity... ;o) Below is a photo of the 'ALTDC' board for AudioScope.sh... I have decided to incorporate all three methods for obtaining DC into this...

View Article


Remote Desktop Session Prints Warning Message Everytime I Hit One Specific Key

Hello All, My question has to do with a Remote Desktop Session going from my Linux HOST to a Windows GUEST. Linux OS: OpenSuSE 11.4 i586 Windows OS: Windows Server 2003 For some reason after I have run...

View Article

Run a script on multiple servers

I need to run a script on a bunch of remote servers. how can this be done without ssh into each individual server and run it its under /sbin/script.sh on each server

View Article

Csplit command problem in Linux

Hi All, I have recently join the forum and this is my first post....hoping to get a suggestion to a problem that I am facing. I have a script that works well on ksh unix on AIX server. The below...

View Article


Get counts from List

This is very easy , but I`m struggling .. please help modify my script, I want to count the number of h and n , from the second column group by the first. The second column is binary, can only have h...

View Article


Question about enviroment variable.

Hi Gurus, I am stuck on below issue. in my .profile. I have two variable: Code: x=abc$123 t=xyz$ when running env command, I got below: Code: x=abc t=xyz$ my OS is SunOS 5.10 sun4v sparc...

View Article

Extract all the sentences that matched two patterns

Hi I have two lists of patterns named A and B consisting of around 200 entries in each and I want to extract all the sentences from a big text file which match atleast one pattern from both A and B....

View Article

Help with file processing

I have a fixed width file coming from source system. The total characters on each record is 786. I am getting records in the file with less than and greater than this number and the process is failing...

View Article

Parsing a fixed column text file in sed

I have a text file with records of the form: A X1 Y1 X2 Y2 X3 Y3 where A is character length 10, Xi is character length 4 and Yi is numeric length 10. I want to parse the line, and output records like:...

View Article


Parent directory ".."

Hi, I know in liunx "." is currect directory and ".." is for parent directory.But if go to (/) directory and give "ls -a", could see "." (denotes current direcctory) and ".." Really don't know why ".."...

View Article

How to target certain delimiter to split text file?

Hi, all. I have an input file. I would like to generate 3 types of output files. Input: Code: LG10_PM_map_19_LEnd_1000560 LG10_PM_map_6-1_27101856 LG10_PM_map_71_REnd_20597718...

View Article


Pattern match a path anywhere in the line and replace it with new path

I want to pattern match only path part from below and replace them with new path string. Code: LoadModule jk_module /fldrA/fldrBaf/fldrCaa/modules/mod_jk.so JkWorkersFile...

View Article

Word-counting and substitution with awk

Hi!! I am trying to write a program which allows me to count how many times I used the same word in a text: Code: {$0 = tolower ($0)  gsub (/[^[:alnum:]_[:blank:]]/, "", $0)   for (i = 1; i <= NF;...

View Article


Avg calculation for top 5 records

Hi, we have a file which contains Area, Country & Rank fields. HTML Code: AREA,COUNTRY,RANK A,MX,1 A,MX,2 A,MX,4 A,MX,6 A,MX,3 A,MX,8 A,IN,7 A,IN,5 A,IN,2 B,CN,6 B,CN,2 B,CN,7 B,CN,0 --------...

View Article

Image may be NSFW.
Clik here to view.

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# Code: fcinfo hba-port HBA Port WWN: 21000024ff295a34         OS Device Name: /dev/cfg/c2         Manufacturer: QLogic Corp.         Model:...

View Article

Rename values in file

Dear all, I have a problem that i cannot solve and I hope someone here can help me. I have a huge tab delimited text file with two columns in relation. The values in the first column can be redundant...

View Article
Browsing all 16232 articles
Browse latest View live