I have a .txt file like below: For example, I want to generate a subset with the IDs 4324321_A3 and 9342432 (based on the first column!). I tried the following command to find the exact matches: But when I use this line, I end up with a dataset like this: The problem is that the line that matches a part
Tag: command-line
In reverse-i-search (Ctrl+R ) ,Any method to switch between similar commands in history
I think an example will be good to understand my question. Assume that is the order of commands in history. If I am doing Ctrl+R and type scp it will show the last executed scp command ( ie the line ending with ‘tested’) . But I want to locate the scp command ending with ‘important’. So is there any way
getting pid of spawned exec in phing
I am using phing and running selenium server via ExecTask. Sometimes I need to stop running server by killing its process. Is there a possibility in phing of getting PID of process spawned in ExecTask ? Answer No, ExecTask cannot give the pid of spawned processes directly. It can only return it’s exit status and output. Maybe you can modify
Track the time a command takes in UNIX/LINUX?
In UNIX/LINUX, is there an easy way to track the time a command takes? Answer Yes, use time <command>, such as Consult man time for more options. Link.
Minify and join CSS & JS files on linux, server side
In my project, for example, I have this structure: After changes have been made, I would like to type in command line something like: which would generate two files: For the moment I am using less css, which is working on node. I would like to have one script that will do everything, for css as for javascript. Could you
How using a Java GUI in a GL Linux Server command line?
My school projects are all done on the Linux Server, which is all done with command lines and no GUI. One of my java projects requires me to create a java GUI and to be able to build and run the project on the GL server. I’m confused since the GL server is all command line, but my professor says
linux command line: du — how to make it show only total for each directories
I am doing it by (with coreutils_8.5-1ubuntu6_amd64): I am looking for a simple way (shorter cmd) to find size of subdirectories. Thank you. Answer This works with coreutils 5.97: du -cksh *
Convert MediaWiki wikitext format to HTML using command line
I tend to write a good amount of documentation so the MediaWiki format to me is easy for me to understand plus it saves me a lot of time than having to write traditional HTML. I, however, also write a blog and find that switching from keyboard to mouse all the time to input the correct tags for HTML adds
Why do I get permission denied when I try use “make” to install something?
I’m trying to install something and it’s throwing me an error: Permission denied when I try to run make on it. I’m not too fond of the universal rules of unix/linux and not too fond of user rights either. My best guess is that the user I’m logged in as does not have the privileges to run make commands, but
PostgreSQL psql terminal command
I’m trying to get psql to format nicely and am following the docs here. Right now, whenever I do a query on tables with lots of columns, no matter how big I make my screen each line overflows into the next line and producing a whole screen of unreadable junk. The docs (link is above) say there’s a way to