Just to to go the technical answer reset reinitialize the terminal, as if it was reopened from scratch. stty sane will do a lot of the same functionality (without the reset). This is the same thing as ^L (Ctrl+L) (irrc), and tput clear. Despite what the previous poster (@grawity) said, clear does not output a bunch of newlines. It sends the TERM's reset as defined in terminfo or termcap, for me, using gnome-terminal (xterm) it is the same as the command perl -e'print "\33[H\33[2J"'. If you want to just clear the buffer -- as compared to reseting the whole terminal, try this tput reset. unix - Bash: Reset and Clear Commands unix - Bash: Reset and Clear Commands
Linux - Search and replace over multiple files. and I wanted the following instead: As each expression is a regular expression you've got to escape the special characters such as forward slash and . \.\.\/includes\/style\.css So the final line of code ends up as Linux - Search and replace over multiple files.
Have you ever want to split a large file into several small files? I’ve face this problem few days ago. I need to split a large file (3GB log file) into several smaller file where i can read it using normal text editor. To split large file into several smaller files, you can use split command in linux. Just follow the steps below and you will be able to split large file into smaller files. in your shell key in $ split --bytes=1m /path/to/large/file /path/to/output/file/prefix Done. How to split large file into several smaller files – Linux - Techie Corner How to split large file into several smaller files – Linux - Techie Corner
Linux Journal | Linux Tips Linux Journal | Linux Tips curl http://curl.haxx.se GET form:curl "www.hotmail.com/when/junk.cgi?birthyear=1905&press=OK" POST form:curl -d "birthyear=1905&press=%20OK%20" www.hotmail.com/when/junk.cgi File Upload POST:curl -F upload=@localfilename -F press=OK [URL] PUT:curl -T uploadfile www.uploadhttp.com/receive.cgi
A few posts ago, we learnt how to kill by name (killall "name"). We also know how "xargs" works. (See previous posts if you don't know to use either) February 2007 February 2007
Gnome Linux Disable / Turn Off Hardware Beep Sound For Terminal This beep sound is annoying under Linux, how do I disable it forever under Debian / Fedora / RHEL / Red Hat / Ubuntu Linux? There are diffrent methods to disable / turn of beep under Linux (turn off terminal beep). Use any one of the following method as per your requirements. Gnome Linux Disable / Turn Off Hardware Beep Sound For Terminal
[1.0] A Guided Tour Of Awk [1.0] A Guided Tour Of Awk v1.1.3 / chapter 1 of 3 / 01 jun 12 / greg goebel / public domain * This chapter provides an overview of Awk and a quick tour of its use. * The Awk text-processing language is useful for such tasks as: Tallying information from text files and creating reports from the results.
How do I use grep to find which line numbers match? How do I use grep to find which line numbers match? The UNIX grep command can be used to not only find a pattern, but it can be used to find the line number in the file where the pattern is found. The following command will provide the line number in the file where the pattern 'acme.com' exists: grep -n 'acme\.com' /etc/hosts This searches the /etc/hosts file for the pattern and will display any lines matched preceeded with the line number followed by a colon.
Frequently-Asked Questions about sed, the stream editor Frequently-Asked Questions about sed, the stream editor 5.1. Why don't my variables like $var get expanded in my sed script? Because your sed script uses 'single quotes' instead of "double quotes." Unix shells never expand $variables in single quotes. This is probably the most frequently-asked sed question.
Finding Duplicate Files | Dr Dobb's Journal By Julius C. Duque , December 01, 2003 The Unix command and a few Perl tricks can produce some useful file-finding utilities. Finding Duplicate Files | Dr Dobb's Journal
When working with regular expressions in a shell script the norm is to use grep or sed or some other external command/program. Since version 3 of bash (released in 2004) there is another option: bash's built-in regular expression comparison operator "=~". Bash's regular expression comparison operator takes a string on the left and an extended regular expression on the right. Bash Regular Expressions
Awk by Example, Part 1 - Funtoo Linux This is the approved revision of this page, as well as being the most recent. [edit] An intro to the great language with the strange name [edit] In defense of awk

All commands sorted by votes

-p parameter tells wget to include all files, including images. -e robots=off you don't want wget to obey by the robots.txt file -U mozilla as your browsers identity. --random-wait to let wget chose a random number of seconds to wait, avoid get into black list. Other Useful wget Parameters: --limit-rate=20k limits the rate at which it downloads files.
10 Useful Linux Commands | TuxArena Blog Here's a list of 10 commands which may come handy when using the command line in Linux: Search for all files modified in the last N days containing a specific text in their name find DIR -mtime -N -name "*TEXT*" For example: find ~ -mtime -5 -name "*log*" Will display all the files modified in the past 5 days which include the text 'log' in their filename.
Local Variables
Por tekstoredaktado Unikode kaŭ Esperante, mi rekomendas na UniRed kaj Simredo! Editing/textprocessing is a hobby of mine. Yes, I actually enjoy messing around with these utilities, and have written some small editors in Assembler, Forth and C. Iloj : Tekstiloj kaj Tekstotraktado
sed/regexp: remove empty lines
sed and Multi-Line Search and Replace – Austin Matzko's Blog
Text Processing Commands
Ten useful uses of command find 1
Sort CLI output by line length - Linux * Screw
Good Shell Coding Practices
Shell Scripting: Generate or Print Range of Numbers ( Sequence of Numbers for Loop )
Other Comparison Operators
Linux: copy file with preserving permission
Linux: preserving color output on match when piping grep to more/less ~ Mattias Geniar
Writing Robust Bash Shell Scripts
Create etags file of .c, .cpp, and .h files in all subdirectories
Batch file suffix renaming
Changing extension of multiple files
combining multiple sed operations into a single command
Top Ten One-Liners from CommandLineFu Explained
Bash Reference Manual: Bash Conditional Expressions
Variable Mangling in Bash with String Operators
Arithmetic Expressions in BASH
unnamed pearl
Chapter 7. Conditional statements
» Zero Padding in Bash Jonathan Wagner
Cleaning up bash customizations | mathew
bash - How to insert a new line character after a fixed number of characters in a file
Working Productively in Bash's Vi Command Line Editing Mode (with Cheat Sheet)
Find Files Containing Text [bash] [shell] [grep]
Test for integer in BASH
Bash by Example, Part 1 - Funtoo Linux
bash best practice : scripting actions to be done in all current subdirectories
Creating and running a script
Bash script to remove capitalisation and spaces form a filename
bash check folder exists
mac - Sending mail from bash shell script.
combined stdout & stderr
command line - Peak memory usage of a linux/unix process
Delete empty directories (UNIX) [unix] [shell] [directory] [command] [remove] [directories] [delete] [empty]
UNIX Basics : Examples with awk: A short introduction
To kill all processes of a specific user - Toolbox for IT Groups
Dealing With "Argument list too long" Errors on Linux and Unix
Sort -u vs. uniq
Unix find and replace text within all files within a directory
Find number of columns in a file
Unix cut command
Tar Extract a Single File(s) From a Large Tarball
How to Find and Delete Empty Directories and Files in Unix
How To Find Large Files and Directories in Unix | Unix Tutorial
Recursively find all files and convert to unix format (excluding those in svn dirs) [dos2unix] [find] [convert] [EOL]
Grep multiple patterns
How to remove spaces in filenames
seq Unix Utility for MacOS X
Unix sort command
unnamed pearl
Concatenation of a large number of files
sed:replace whitespace with newline
fold: Wrap Text File / Line / Words To Fit in Specified Width
Compare 2 folders to find several missing files among huge amounts of files.
UNIX tips: Learn 10 more good UNIX usage habits
Introduction to UNIX cron and at Utilities
Compute simple average using AWK
In Unix, how can I replace a single string in a large number of files
Unix/Linux "find" Command Tutorial
Minus of 2 files -- Please help
Turn Vim into a bash IDE
UNIX Bourne Shell Programming
linux - How to check if a directory exists in a Bash shell script