Skip to content

Empty string as a output field seperator for Cut

How can I use cut with –output-delimiter=””? I want to join two columns using cut. I tried the following command. However cat -v shows that there are non printable characters. Specifically “^@”. Any suggestions to how can I overcome this? This is the content of my file 011,IBM,Pa…

Cannot go to the line of the reference

I recently installed cscope Vim plugin to make it easier to jump through code, but the main functionality – go to line, does not work. I have F2 key mapped to “Find all references”. When I select a function call for example, and press F2, I get the list of all the references, and the first r…

Check PDF number pages with PHP (in Linux)

I have a webpage where I let users to upload files to the account folder. Exactly PDF and JPG files only. I want to count the number of pages inside each PDF uploaded to show it to the users. To do this, I was using PDFINFO linux library, part of XPDF proyect. This is the man page of the binary

Logcat show invisible messages in Eclipse Mars

My PC running on Debian Jessie & Logcat’s messages are all invisible on eclipse Mars. I tried a solution here, but no help. What to do now? ———- UPDATE ———- I tried the followings: Change logcat/ddms’s metadata settings in com.android.ide.eclipse.ddms.prefs …

Replace a line with a number if part of it is matches using sed

I know this is a very simple question and been discussed many times, but I can’t understand where I am doing wrong in my command. I would like to replace the lines which starts with “It” as 99999. Each row starts with several blank spaces. I used But it is not working. Answer give this a try…

How to grep a particular pattern

I am trying to get a particular pattern, but i get the result for all possible solutions I did try all the solutions available here How do I get only the PID: 467? Answer If your goal is to grep only for “lubuntu”, not “lubuntu-somethingelse”, then you can add a space afterwards: Or wi…