formats

Use awk instead of cut to cut out specific columns of a file

Use awk instead of cut to cut out specific columns of a file | For separating out specific columns of a file, try using awk! The command to use is: $ awk ā€˜{print $9,$10}’ file.txt > file_cut.txt Where 9 or 10 indicates the ninth or tenth column of a text file. For an example, say you have the output of an ls -l: drwxr-xr-x 13 root root 4096 Jun

formats

Batch Rename Files with rename

Published on April 24, 2011, by + in linux, sysadmin.

Batch Rename Files with rename | How can I batch rename files in Linux? There are tons of how-tos and guides on using sed, mv, and other commands to batch rename files. However, a very powerful tool available in Debian and Ubuntu Linux is simply rename. The rename command can be used to mass / bulk rename files, file extensions, rename

formats

Strip or Remove HTML Tags

Published on November 30, 2010, by + in linux, osx.

Strip or Remove HTML Tags | Here is how to easily strip or remove html tags from a file using sed. (View full post for proper syntax!) sed -e ā€˜s/]*>//g’ myfile.txt > myfilenew.txt This will strip tags from any sort of text file (html, csv, txt).

Home Posts tagged "sed"