Article View: comp.unix.shell
Article #1088How to do <cmd> file | hold file
From: Jeffrey Lawrence Haferman
Date: Fri, 07 Sep 1990 17:57
Date: Fri, 07 Sep 1990 17:57
20 lines
945 bytes
945 bytes
I had a shell script that used to perform what I have in the subject line. For example, suppose I want to sort a file and place the result in the same file without destroying it, e.g. % sort file > tmp % mv tmp file I would like a command 'hold' which would do the above via % sort file | hold file Got a good one liner for this (in c-shell)? Jeff Haferman internet: jlhaferman@icaen.uiowa.edu Department of Mechanical Engineering University of Iowa Iowa City IA 52240
Technical Details
Message-ID:
<2274@ns-mx.uiowa.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!ns-mx!l_cae07.icaen.uiowa.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!ns-mx!l_cae07.icaen.uiowa.edu From: jlhaferman@l_cae07.icaen.uiowa.edu (Jeffrey Lawrence Haferman) Newsgroups: comp.unix.shell Subject: How to do <cmd> file | hold file Message-ID: <2274@ns-mx.uiowa.edu> Date: 7 Sep 90 17:57:59 GMT Sender: news@ns-mx.uiowa.edu Lines: 20