|
trying to recursively get the files' owners and permissions as well as an md5sum of the data I also need the full path to the file, the modification times of the files, which find gives you via: ~ sh-3.1# find /ramdisk -type f -printf "%A@ %C@ %T@" ~ I have tried different things using "find" and "ls" and you can always do it in two steps: ~ sh-3.1# md5sum `find /ramdisk -type f ` | sort ~ a... 19 Jun 2008 01:20
un-closed files Hi all, is there a way to close files left open by other programs (which were not closed properly) from the shell (tcsh)? Thanks Ivan ... 21 Jun 2008 07:39
cmd1 | gzip -f ... && cmd2 : Command concatenation with condition: Execute cmd2 only if cmd1 (or gzip) fails/succeeds? I am not sure about on how to specify that a second command should only be execute in case that the first command fails/succeeds. When I enter: cmd1 | gzip -f ... && cmd2 Is then cmd2 executed only if cmd1 is finished successfully or if gzip is finished successfully? Is the command concatenation "&&" corre... 19 Jun 2008 01:20
How to display "7" as left "0" padded 4 char wide field: "0007" ? In a shell script I want to echo out some values whcih are not necessarily as wide as they should be. For example a value of 7 should be display as a field of width 4 with left padded zeros "0": 0007 How can I accomplish this? Gary ... 19 Jun 2008 01:20
How to list all active local ports where a server/services islistening? 2008-06-16, 18:53(+00), Wolfgang Meister: How can I list all local ports where a local server or services is listening? The listing should contain the path and program name of the listening server/service. So I need something like: port=22 /lib/svc/method/sshd port=25 /bin/emailprgm ... ... 19 Jun 2008 01:20
How to list all active local ports where a server/services is listening? How can I list all local ports where a local server or services is listening? The listing should contain the path and program name of the listening server/service. So I need something like: port=22 /lib/svc/method/sshd port=25 /bin/emailprgm .... port=1049 /ust/local/bin/myserver How can I do this? ... 19 Jun 2008 01:20
Filtering hrefs in an HTML file with sed. Hi. I was wondering if it would be posible to filter the href from a HTML file with sed. For example: If a file has lots of these line: ..... </p><p></p><h1><a name="uh-55" href="http://www.grymoire.com/Unix/ Sed.html#toc-uh-55">Hold with h or H</a></h1><p>The <p><br>Click here to get file: <a href="http://w... 19 Jun 2008 01:20
"Ctrl-o" equivalent in csh or tcsh Bash and zsh both have a feature in interactive use that having browsed up the history, ctrl-o will execute the line and then move down one entry in the history. The function name is operate-and-get-next in bash/readline and accept-line-and-down-history in zsh. It is useful for repeating a sequence of history eve... 26 Jun 2008 10:29
what does env | grep !* mean? I see this alias is being used like env | grep \!* some Somestring (to find string env. variables that start with some string). I am not sure what '!* ' in the expression mean. thx ... 19 Jun 2008 01:20
while loop of c shell Hello, I am using C shell as interactive shell because its filename completion feature is more easy. I have my entire list of aliases and environment is set up in C shell. Recently due to some network overload admin has changed policy and inactive terminal gets logged out if it reamins inactive for more than ... 19 Jun 2008 01:20 |