blank lines

I am trying to use xargs command using shell pipes and not able to understand how to control and use command line arguments. For example I’d like to find out all *.c file located in 100s of sub-directories and move them to another directory called ~/old.src. How do I use command line args with xargs to achieve the same?

{ 38 comments }

Q. How do I redirect with PHP script?

{ 45 comments }

Shell Script To Number Lines Of Files

by Vivek Gite on April 18, 2008 · 10 comments

How do I number each line to a text file? How do I write a shell script to display text file with line numbers added?

{ 10 comments }

Q. I want to change the formatting of a file. I just wanted to remove all blank lines from text file. How do I achieve this task w/o spending much time?

{ 23 comments }