I have a bunch of files in a folder
For all the files here is what I want to do:
Insert "<br>" and the same number of spaces (in this format " ") into all the lines that start with one or more space (these spaces will just be blank space and not in the format). Ideally I would like to do this only for lines that are not blank - but I don't care too much if I have the end up doing that.
To eliminate pitfall #1 add this before the "cat $1"
# Get rid of all lines that are now just a <br> followed by some (lines that were only spaces before this script was run)
sed -i 's/^<br>\ \(\ \)*$//'
More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.
Using 'screen' for session sharing, The Simple Edition
Step 1: user starts session with command: screen
Step 2: other user (logged in with same user account) connects with command: screen -x
Done. Both users are connected to the same CLI sessio…
Little introduction about CP:
CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow:
cp /myfoder /pathto/destination/folder/
cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands.
Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.: