Showing posts with label bash. Show all posts

Here is an example using sed to remove
the ^M carriage returns from a file.

# inplace (works!)
sed -i "s/\r//g" windows-text-file.txt
sed -e "s/^M//" filename > newfilename
Read more »

#!/bin/bash

for i in {1..10}; do wget http://www.mangapul.com > $i.html; done


for xx in `ls *.sql`;do bzip2 -9 $xx ; done

Read more »