Differences
This shows you the differences between two versions of the page.
 
    
    
                        
                    | Both sides previous revision
Previous revision
Next revision | Previous revision | 
                        
                | linux:commands [2012/01/16 15:10] cyril +objdump
 | linux:commands [2024/04/19 13:59] (current) cyril [List]
 | 
        
| ====== Current Commands ====== | ====== Usual Commands ====== | 
|  |  | 
| ===== Links ===== | ===== Links ===== | 
| | ''cat <file> | sed 's/string1/string2/g'' | replace string1 by string2 (and a lot more with sed) | | | ''cat <file> | sed 's/string1/string2/g'' | replace string1 by string2 (and a lot more with sed) | | 
| | ''sed -i 's/string1/string2/g <files>'' | replace string1 by string2 in all files | | | ''sed -i 's/string1/string2/g <files>'' | replace string1 by string2 in all files | | 
| | perl -pi -e "s/string1/string2/g" <files> | replace string1 by string2 in all files (and a lot more with perl) | | | ''echo "Image 10:55.jpg" | sed 's/([0-9]{2}).jpg/\1 #1.jpg/' '' | example with more complex regex | | 
|  | | ''perl -pi -e "s/string1/string2/g" <files>'' | replace string1 by string2 in all files (and a lot more with perl) | | 
| | ''awk 'NR>10 && NR<1000 {print $#}' <file-in>'' | extract lines 10 to 1000 from file-in to file-out | | | ''awk 'NR>10 && NR<1000 {print $#}' <file-in>'' | extract lines 10 to 1000 from file-in to file-out | | 
| | ''awk '{ print "[10]("$1","$4","$5","$6")" }' <file-in>'' | reorganize and reformat columns of a file | | | ''awk '{ print "[10]("$1","$4","$5","$6")" }' <file-in>'' | reorganize and reformat columns of a file | | 
| | convmv -f iso-8859-15 -t utf8 -r <folder> | convert file names of files in folder from encoding latin9 to utf8 | | | convmv -f iso-8859-15 -t utf8 -r <folder> | convert file names of files in folder from encoding latin9 to utf8 | | 
| | paste | merge files by concatenating columns | | | paste | merge files by concatenating columns | | 
|  | | numfmt --to=iec --format="%.2f" | to convert numbers to and from human-readable format | | 
| ^  Programming  ^^ | ^  Programming  ^^ | 
| | nm [-D] / objdump / ldd / readelf [-s] | check infos about link and symbols in exe and libs | | | nm [-D] / objdump / ldd / readelf [-s] | check infos about link and symbols in exe and libs | |