Sort based on the third column
I’m facing a huge 4-columns file. I’d like to display the sorted file in stdout based on its 3rd column:
I’m facing a huge 4-columns file. I’d like to display the sorted file in stdout based on its 3rd column:
I removed a file and now I see:
I have numerous zip archives, each of which contains a number of zip archives. What is the best way to recursively extract all files contained within this zip archive and its child zip archives, that aren’t zip archives themselves?
I have a file that contains file names. For example:
I have a file in UTF-8 encoding with BOM and want to remove the BOM. Are there any linux command-line tools to remove the BOM from the file?
I just read the answers to Removing a newline character at the end of a file and everyone said to delete the last character. My question is, isn’t the eof character the last one?
I often want to feed relatively short string data (could be several lines though) to commandline programs which accept only input from files (e.g. wdiff) in a repeated fashion. Sure I can create one or more temporary files, save the string there and run the command with the file name as parameter. But it looks to me as if this procedure would be highly inefficient if data is actually written to the disk and also it could harm the disk more than necessary if I repeat this procedure many times, e.g. if I want to feed single lines of long text files to wdiff. Is there a recommended way to circumvent this, say by using pseudo files such as pipes to store the data temporarily without actually writing it to the disk (or writing it only if it exceeds a critical length). Note that wdiff takes two arguments and, as far as I understand it will not be possible to feed the data doing something like wdiff <"text".
The logged in user is a member of a group that has a write permission on a folder. But when this user is trying to write something, “permission is denied”.
From the post Why can rm remove read-only files? I understand that rm just needs write permission on directory to remove the file. But I find it hard to digest the behaviour where we can easily delete a file who owner and group different.
I have directory with cca 26 000 files and I need to grep in all these files. Problem is, that I need it as fast as possible, so it’s not ideal to make script where grep will take name of one file from find command and write matches to file. Before “arguments list too long” issue it took cca 2 minutes to grep in all this files.
Any ideas how to do it?
edit: there is a script that is making new files all the time, so it’s not possible to put all files to different dirs.