随笔集
AshaLv
这个作者很懒,什么都没留下…
展开
-
the diary about awk scp in linux
talk awk and scpthe awkthe awk is like cut , but it is more powerful , say you have a text file named "haha" , inside it you have structure like this:asha haha 1peter wawa 2melme papa 3原创 2017-04-17 17:54:39 · 352 阅读 · 0 评论 -
the diary of cron xarg find tar in linux
i think things gonna to be crazy now!cronit is a really crazy stuff,cron stands for command run on,you can use it to decide to do one stuff at a specified time every time.it is easy to use t原创 2017-04-17 15:08:13 · 399 阅读 · 0 评论 -
the diary of homework of script check dir in linux
to make a script to check a directory?#!/usr/bin/bash#check the information of a directory#Asha 2017/4/17if [ ! -d $1 ]thenecho there is no this directory.exitfi echo we have原创 2017-04-17 11:41:47 · 350 阅读 · 0 评论 -
the diary of script in linux
scriptdo not want to type codes every time, want to be efficient, want to be lazy,then just use script to handle repetitive tasks.what is script in linux?it is just like script in theatrical原创 2017-04-17 09:43:23 · 415 阅读 · 0 评论 -
the diary of sleep jobs & fg command line in linux
sleepwhat does sleep do? sleep command runs the action of literally sleep. all it does is wait some time and quit . it's usage is sleep . jobswhat does jobs do? jobs is literally jobs. insi原创 2017-04-17 08:33:03 · 398 阅读 · 0 评论 -
the diary of process manage of top ps and kill in linux
what are top , ps , kill command?what do they do?firstly , i wanna say about top. top can help us to find what tasks that are running in our system,it will show us what tasks are running,how many ta原创 2017-04-16 20:02:28 · 319 阅读 · 0 评论 -
the diary for one command application of pipe in Linux
ls -l /projects/ghosttrail | tail -n +2 | sed 's/\s\s*/ /g' | cut -d ' ' -f 3 | sort | uniq -c actually in my first glance, i think it is complicated, and the true is that i got stopped when i see t原创 2017-04-15 21:46:06 · 473 阅读 · 0 评论 -
the diary of pipe in linux
learning new stuff always makes you exited. and i have to write down it and increase my memory for it as well.today i finished reading pipe commands in Linux. we just make a "|" to stand for that.原创 2017-04-15 19:27:43 · 370 阅读 · 0 评论 -
the diary for redirection in linux
it is amazing for me to know what is redirection in Linux.what i know is that it is control three streams , these respectfully are standardinput(0) standardoutput(1) standarderror(2).at normal sta原创 2017-04-15 19:06:52 · 533 阅读 · 0 评论 -
the diary of how to backup one more files in linux
#!/usr/bin/bash#to backup one more files#asha 2017/4/17if [ $# \then echo please give at least one existed file you wanna backupfidate=`date +%F`for file in $*doif [ ! -e $file ]原创 2017-04-17 22:47:47 · 545 阅读 · 0 评论 -
the diary of how to get a random word within a file
cat haha.txt | sed 's/\s\s*/ /g' | cut -d ' ' -f 2 | tail -n +$(expr $RANDOM % ) | head -1原创 2017-04-17 20:15:34 · 426 阅读 · 0 评论 -
如何爬虫推特数据
爬虫原创 2017-06-10 17:25:14 · 7779 阅读 · 0 评论