Linux Today: Linux News On Internet Time.

Linux tips every geek should know

Mar 02, 2009, 16:33 (0 Talkback[s])

"#25: Text file conversion

"* Difficulty: Easy
* Application: recode

"recode is a small utility that will save you loads of effort when using text files created on different platforms. The primary source of discontent is line breaks. In some systems, these are denoted with a line-feed character. In others, a carriage return is used. In still more systems, both are used. The end result is that if you are swapping text from one platform to another, you end up with too many or too few line breaks, and lots of strange characters besides.

" #26: Listing today's files only

"* Difficulty: Easy
* Application: Various

"You are probably familiar with the problem. Sometime earlier in the day, you created a text file, which now is urgently required. However, you can't remember what ridiculous name you gave it, and being a typical geek, your home folder is full of 836 different files. How can you find it? Well, there are various ways, but this little tip shows you the power of pipes and joining together two powerful shell commands:"

Complete Story

Related Stories: