Skip to content

Tag: unix

Symbolic link difference between cp -sr and ln -s [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

Insert text if column contains a number

I have a tab-delim file that looks like this It should be three columns but some rows are missing the second column (bacterial taxonomy). For these rows I want to move the number to a third column and insert some text (such as Unclassified). I have been attempting to modify some commands I found online to ins…

Issue with HH date time format

Need help to identify where is the issue, whether it is a java issue or linux box or something else. My app is running on linux weblogic, app is generating some kind of .tar files on linux with datetimestamp in filename. I am using below snippet to get current time to prepare filename: File format: SA_PART_YY…

Pipes in Bash: One at a Time (Line by Line) or All at Once

First, I create 5 files In the following example, xargs seems to get all the results from find via the pipe all at once: In the following example, xargs seems to get all the results from find via the pipe one at a time (line by line): In the following example, xargs seems to get all the results from ‘fi…

How to find which column has special characters in a file

I would like to find out which column has special characters in a file For example, I have the data below: Desired output: I want the record number along with the column numbers that have special characters. Answer You didn’t define special character. I will assume that you mean anything outside of the …