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

Output not coming as desired.

Hi guys. I have a file containing some hosts and their IPs. Code: host host1 192.168.2.10 host host2 192.168.2.11 host host3 192.168.2.12 I am writing a script where I want to print these values in 1...

View Article


Find most and second most abundant value

I would like to convert the most frequent and second most frequent duplet in each row to 1 and -1 respectively ...and everything else to 0. please assist A duplet is only AA , CC, GG and TT Code: - C1...

View Article


Mail/IN.spam? mail/In.spam_true?

I get spam thrown into these two folders, as well as mail/spam. I think my spamassasin is throwing them at the latter. Who is throwing them at the former? Why are they getting thrown in different...

View Article

Save output of updated csv file as csv file itself, part 2

Hi, I have another problem. I want to sort another csv file by the first field. result.csv Code: SourceFile,Airspeed,GPSLatitude,GPSLongitude,Temperature,Pressure,Altitude,Roll,Pitch,Yaw...

View Article

Solaris 11.2 on Supermicro X10SL7-F with LSI SAS 2308

Hi, I am planning on building a Solaris 11.2 based ZFS file server. The hardware I have chosen is the following: Mobo: Supermicro X10SL7-F (with integrated 'LSI SAS 2308' controller) CPU: Intel i3-4150...

View Article


Remove duplicate lines, sort it and save it as file itself

Hi, all I have a csv file that I would like to remove duplicate lines based on 1st field and sort them by the 1st field. If there are more than 1 line which is same on the 1st field, I want to keep the...

View Article

How to find the path of process in sunOS?

Please support for this issue, I have a below process running on my machine Code:   16108 /usr/jdk/instances/jdk1.6.0/bin/java -Xms3072m -Xmx3072m -Dcbcm.root=/java3_app     20992 java...

View Article

Synaptic

Dpkg-reconfigure brain, just quits on deb x86-7.8.0-64bit, desktop. what to do, where to report this bug, while using or opening synaptic on a debian wheezy7.8.0-64bit even one single character its...

View Article


Extract all text between the same matching string from a given column

Hello All, I have an input sample data like below (In actual I have many columns and few million rows). Code: Column1,Column2 4,2 1,5 Hello,4 1,4 Hello,2 3,5 Hello,8 4,5 Need the output (using awk...

View Article


How to run the following expect commands in a loop?

Code: spawn fbat expect ">>" send "log fbatPW80_OR8sim1 \r" expect ">>" send "load map.map \r" expect ">>" send "load fbatPW80_OR8sim1.ped \r" expect ">>" send "fbat -v1 \r"...

View Article

RHEL 6 SAMBA PDC not loading user's profile

Hi all I am facing a problem. I have configured SAMBA PDC on RHEL 6. Everything is going very smooth. Users are being logged in properly & their network drives (i-e; z: drives) are being shown. But...

View Article

UNIX mail box

Currrently I am not able to send/receive any emails to email id. I believe my mail box is full in server. could you please let me kknow to clear the emails in the unix server.

View Article

Image may be NSFW.
Clik here to view.

Convert UNIX rights in a number in a sh script

Hello, i'm trying to write a script sh to convert the rights of a folder or file in a number. Explain: Code: ls -l = rwxrwxrwx so i must display 777. Do you known where i can find so convert script...

View Article


Timestamp between two dates

Hi, I want to find out the difference in minutes, and seconds between two dates for a job.Tried searching many ways but none of them worked correctly. Code: eg: Start Time            End Time...

View Article

Forum Update: Disabled Home Page Forum Statistics for Guests (Not Registered)

Just a quick update; to speed up the forums, I have disabled the forum statistics on the home page for non registered users. No changes for registered users.

View Article


Image may be NSFW.
Clik here to view.

Running Multiple Scripts for different business date

Hi Team, I have the below 4 scripts which I will be running in sequential order. This run will start for today's business date. If all the 4 scripts are success for today that means script has ran...

View Article

Mail commands

Currently, I would need to keep cc a person in the email. I am using Code: hpunix Code: mailx -s "instance has been started now" -c Karthi@wide.com arun@wide.com < /dev/null When I tried the above...

View Article


Create Sym Links for a series of files

Hello, I would like to create symbolic links for a series of files in my cwd (after confirming that the links don't already exist). The above files all have a similar prefix, but different extensions....

View Article

Shell script question

I am not sure which is the better way for the below shell script. I need to find the below process running and sent it to the desired user. please let me know which is most feasible right way. Code: ps...

View Article

How to run executeable file using shell script?

Hi all, i really need a help for run my executeable program and add a file as a paramater to the executeable program. i want to run my executeable program by shell script. i have space.exe program and...

View Article
Browsing all 16232 articles
Browse latest View live