python

I‘d like to skip first two or three fields at the the beginning of a line and print the rest of line. Consider the following input:

This is a test
Giving back more than we take

I want my input file with the following output:

a test
more than we take

How do I printing lines from the nth field using awk under UNIX or Linux operating systems?

{ 1 comment }

How do I run “foo” command 10 times (or n times) under Linux or UNIX like operating systems?

{ 6 comments }

How do I determine whether a variable called spath=”/srv/www/cyberciti.biz/https” contains a substring called “cyberciti.biz”?

{ 3 comments }

gedit: Add Python / C++ Autocomplete Support

by Vivek Gite on September 12, 2009 · 12 comments

How do I add Autocomplete support to gedit text editor under Linux Gnome desktop operating systems?

{ 12 comments }

I’m using Varnish cache infront of Apache web server and I’d like change my web server signature from

Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.8 OpenSSL/0.9.8g

To:

Apache Web server

How do I change headers using Varnish?

{ 0 comments }

HowTo: Linux Serial Port Sniffer

by Vivek Gite on April 16, 2009 · 0 comments

How do I sniff and monitor data on a serial port under Linux operating systems?

{ 0 comments }

I‘m running the command yum update -y and getting the following error:

Loaded plugins: fastestmirror, priorities
Existing lock /var/run/yum.pid: another copy is running as pid 523.
Another app is currently holding the yum lock; waiting for it to exit…

The other application is: yum-updatesd-he
Memory : 14 M RSS ( 26 MB VSZ)
Started: Tue Feb 9 08:19:02 2010 – 14 day(s) 11:47:39 ago
State : Sleeping, pid: 523
Another app is currently holding the yum lock; waiting for it to exit…
The other application is: yum-updatesd-he
Memory : 14 M RSS ( 26 MB VSZ)
Started: Tue Feb 9 08:19:02 2010 – 14 day(s) 11:47:41 ago
State : Sleeping, pid: 523

How do I fix this problem?

{ 8 comments }