The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
3answers
30 views

match just one row in two files and return the whole column from file 2

If I have two files file1: Reference Position 905894 1197693 3703749 92108275 114940633 114940633 file2: Mapping Reference Position Type Length Reference Allele Linkage Zygosity Count ...
15
votes
6answers
749 views

Remove all files/directories except for one file

I have a directory containing a large number of files. I want to delete all files except for file.txt . How do I do this? There are too many files to remove the unwanted ones individually and their ...
5
votes
2answers
59 views

Alternative command for coloured viewing the size of all files and folders

Is there a nice alternative for this? I always use du -shc * to check the size of all files and folders in the current directory. But it would be nice to have a colored and nicely formatted view ...
2
votes
3answers
57 views

Copying all files from one directory to all directories under same parent directory

I have one parent directory /home/test and under that directory I have multiple directories. The names are server{1..10} and one of them server3 has few files which I have copied from remote server. ...
2
votes
1answer
36 views

How can we compare two same directories in linux and list different files

Suppose I have same version of linux kernel but I changed some driver lines. Is there any way to compare these kernels and list the results. The result would be helpful to go back if I changed a lot ...
2
votes
0answers
27 views

File viewer (not manager) with dual pane

I have multiple papers, in multiple directories. let us call the papers A, B, C, D... and I have to write reports often, where I have to answer questions like Q1, Q2, Q3, Q4... Now, what often ...
0
votes
0answers
15 views

using tops command to update NSLog statements in cocoa code

In my objective-c code base I have several NSLog statements. eg. NSLog(@"Here is the message without arguments"); NSLog(@"Here is the message with arguments: %s, %s","argument1","argument2"); Now ...
1
vote
1answer
188 views

RANCID like configuration differ for linux applications

I'm looking for a RANCID-like (http://www.shrubbery.net/rancid/) config management tool - the catch is that I want to manage config files for Linux applications like mysql, apache, memcache, varnish, ...
9
votes
2answers
813 views

Disable “Recently used” in GTK file/directory selector

Can I completely disable "Recently Used" feature in GTK's file / directory selector? Sometimes programs default to this but since it's not useful in my work-flow and with the way I organize my ...
6
votes
1answer
1k views

How to disable trash can in Thunar/XFCE?

I found myself always holding Shift when I delete a file with Thunar (the XFCE file manager). When I was using Windows I was always disabling "recycle bin" immediately after installation. I've looked ...
3
votes
1answer
153 views

What is the difference between > and >> (especially as it relates to use with the cat program)?

Suppose that I have a file called temp.txt. Using the cat program, I would like to add the contents of this file to the end of myfile.txt -- creating myfile.txt if it does not exist and appending to ...
2
votes
2answers
295 views

How to copy/move/delete files from the shell?

It's surely easy to do while using a graphical environment, but when I'm using the shell I have no idea on how to do that, I already tried to use copy, move, delete, and I discovered that these word ...
3
votes
2answers
305 views

Organizing messy folder based on filetype

I have music lying on my desktop and in my downloads and Music folders. Similarly, I have .odt files lying all over my home folder (mainly desktop). Is there a tool (preferably GUI so my parents can ...
6
votes
4answers
2k views

Copy a File From One Zip to Another?

I have a file named 'sourceZip.zip' This file ('sourceZip.zip') contains two files: 'textFile.txt' 'binFile.bin' I also have a file named 'targetZip.zip' This file ('targetZip.zip') contains ...
7
votes
4answers
10k views

Copy/rename multiple files using regular expression (shell script)

I have a collection of files matching a pattern such as 'assignment02.cc', 'assignment02.h', 'assignment02.txt', etc. I would like to copy/rename these files into 'assignment03.cc', 'assignment03.h', ...
18
votes
2answers
5k views

How do you run a dry run of rm to see what files will be deleted?

I want to see what files will be deleted when performing an 'rm' in linux. Most commands seem to have a dry run option to show just such information, but I can't seem to find such an option for rm. ...
2
votes
2answers
424 views

Copy a file from a nautilus-script to clipboard

I have a nautilus script that generates an archive file based on the files selected in the nautilus window. This archive file is created in the /tmp directory. I want a way to copy this file to the ...
12
votes
5answers
1k views

How to de-unzip, de-tar -xvf — de-unarchive in a messy folder?

Usually, I unarchive things by $ mkdir newFolder; $ mv *.zip newFolder; $ cd newFolder; $unzip *.zip but sometimes I get lazy and just do in an arbitrary folder $ unzip *.zip so time-to-time messing ...
5
votes
1answer
2k views

Gentoo default application for opening files

On my Gentoo box running without a desktop environment, every time I try to open a file the system tries to open it with Firefox. I understand that without a desktop environment "open file" cannot ...