|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Bash Shell: cat/cp and cut/awk
Hi.
I'm writing a bash shell script which go through a large file and generate a large file. Does anyone know which is faster ? 1. cut VS awk for stripping certain fields. 2. cat old-file > new-file VS cp old-file new-file. Also, can anyone give a general direction on how to write bash shell script that run efficiently ? Like what is generall bad things to do... I know it is best to use built-in commands for bash but is there any other ? How about using many pipes and command substitution using backup quotes ? Thanks you. |
|
#2
|
||||
|
||||
|
I keep seeing this post sitting here and I keep wondering how to reply.. but I just keep thinking 'Is there really going to be *any* appreciable difference?' my instincts tell me there isn't.
christo
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Bash Shell: cat/cp and cut/awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|