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

Handling Signals in System Calls

What will happen if signal comes while a system call is being executed? How it will be handled?

View Article


[Solved] Help with grep script

Hi, I'm having trouble with a script to copy one line out of multiple files in a directory and copy to a file called test. I've tried the code below but it copies one line out of the first file...

View Article


Command to extract all columns except the last few from a txt file

hello, i have publicly available txt file with little less than 300000 rows. i want to extract from column 1 to column 218 and save it in another text file. i use the cut command but the file is saved...

View Article

Help in awk

i have a file with following entries in it # global_start # database # client default-router distance # excluded-address # ping packets # ping timeout #global_end I want to add ip excluded-address...

View Article

Deleting the unwanted data based on condition

hi i have my input data like this Code: aaa bbb ccc asa dff nmj mnj saa dff oik aax cdx saa oik asq sdf dss i want my output file to be like this Code: mnj saa dff  oik aax cdx saa oik i want to retain...

View Article


Deleting Files Older than 1 hours.

How to Deleting Files Older than 1 hours. Base on SunOS. this file gen every 1 min. Code: -rw-r--r--  1 nobody nobody      4960 Jan 27 02:02 23_201301270201.log -rw-r--r--  1 nobody amudu      2325 Jan...

View Article

Concatenate 560 files in one

HI all, could please help me in this code. I have 560 files containing the same columns but different rows. i want to concatenate all these files in one big file. i want to keep the header of the first...

View Article

Removing a set of Duplicate lines from a file

Hi, How do i remove a set of duplicate lines from a file. My file contains the lines: Code: abc def ghi   abc def ghi   jkl mno pqr   jkl mno pqr   stu vwx yza My output should look like: Code: abc def...

View Article


Cal command in UNIX

modify "cal " command to display calenders of the specified months. $ cal jan....aug

View Article


Report printing

Hi. i am trying to print the contents of my text file with delimiter : separating them. Code: 6:15:ABC ABD:ABB ABE: 2:20:AEE ABH:ACC AAA: i have completed my header for the report but i am having...

View Article

Extract part of a string

I have a file with 100s of lines of text. I want to perform an extraction of this line: Code: Info bpzs(pid=2652) using 1000 bits I have not been able to extract it. Should I try expr match or is there...

View Article

awk field separator

I need to set awk field separator to ";", but I need to avoid ";EXT". so that Code: echo a;b;c;EXTd;e;f | awk -F";" '{print $3}' would give " Code: c;EXTd "

View Article

Timing READ command - any key to exit

Hello everyone, I would like some help on an issue I have related to the read command with ksh93 (Unix AIX). I want to implement a 'press any key to exit' scenario. I have the following code: Code:...

View Article


How do I count strings on each line?

Hi Im a very inexperienced bioinformatician I have a large DNA file with about 10000 lines of sequence and need to count the occurrence of TA for each line for example in the file Code: TACGCGCGATA...

View Article

How to increase history number in UNIX?

Hi All, when i use history command i got the last 1000 command i want to increase this to 10000 how can i do that

View Article


What does version 5.10 means? Solaris 5 or Solaris 10 ?

Hi all, in Solaris what does the output below means? Code: -bash-3.00$ showrev Hostname: machine1 Hostid: 4540f35178c0 Release: 5.10 Kernel architecture: sun4us Application architecture: sparc Hardware...

View Article

Help asap squid with 2 nic cards setup

I found an old post that talks about 2 nice cards and it is driven by the IP address .... but I didn't understand it because the 2 people skipped information for me the newbie.. Can someone help me......

View Article


Calculate the average of a column based on the value of another column

Hi, I would like to calculate the average of column 'y' based on the value of column 'pos'. For example, here is file1 Code: id  pos    y  c 11  1      220  aa 11  4333    207  f 11  5333    112  ee 11...

View Article

awk function

Hi all, I need to have informations in a URL : Code: https://www.autolib.eu/stations/ Valors I need are in bold: Code: {"charging_status": "nonexistent", "rental_status": "future",...

View Article

Revision Control System

We've recently migrated from Unix to Linux, and unfortunately one of the command 'chown' is turned down on the new environment. My dilemma is that whenever a user co (check-out), on new environment,...

View Article
Browsing all 16232 articles
Browse latest View live