ls -la |grep ^-
Tag Archives: Command
Linux command to list only directories
ls -la -d */
or
ls -la |grep ^d
Replace a string with another in vi editor
:%s/str1/$str2/g will replace all the occurance of str1 with str2
Go to a particular line VI Editor
Type the following
:45
vi editor show line number
Type any one of the following
set number or set nu
svn ren
This command rename the file in the repository
Example : svn ren SRC DEST
svn rename
This command rename the file in the repository
Example : svn rename SRC DEST
svn mv
This command move the file in the repository
Example : svn mv src dest
svn move
This command move the file in the repository
Example : svn move src dest
svn diff
It can be used for two purpose
First, those without write access to the BLFS SVN server can use it to generate patches to send to the BLFS-Dev mailing list. To do this, simply edit the files in your local sand box then run svn diff > FILE.patch from the root of your BLFS directory. You can then attach this file to a message to the BLFS-Dev mailing list where someone with editing rights can pick it up and apply it to the book.
The second use is to find out what has changed between two revisions using: svn diff -r revision1:revision2 FILENAME.