First  |  Prev |  Next  |  Last
Pages: 46 47 48 49 50 51 52 53 54 55 56 57 58
command does not work inside crontab
Can someone tell me why the following command works from a ksh prompt but not when the command is inside a crontab ? Thanks, Carl cp /export/home/bb/todo /export/home/bb/todo-archive/todo_`date '+%m%d %y'` Above works find and creates the file : /export/home/bb/todo-archive/todo_090309 However,... 3 Sep 2009 12:51
Numeric Keypad in VI
Hi, Can someone please let us know how to enable the "Numeric Keypad" input in the VI Editor. Whenever I use it, there is a carriage return and some unwanted alphabets are entered in the new line. Thanks in advance, Glen -----------Beginner in Shell ----------------------------- ... 24 Dec 2008 15:58
stderr redirection on FreeBSD
Greetings! I'm trying for the first time FreeBSD (as a virtual machine). I invoked /bin/sh but found that stderr redirection does not seem to happen: $ givemeanerror >/dev/null 2>&1 prints nothing in Linux, but I get givemeanerror: not found in FreeBSD. Does anybody know why? (Ditto if I try givemeanerror... 21 Dec 2008 13:15
"tr" Command Behaviour
I am trying to learn the "tr" command. But am confused with this behaviour. ################################################################### C-4547:~/rajshell# cat test.txt Mon Nov 13 13:17:04 IST 2000 root pts/0 Nov 13 10:03 (192.168.29.157) /root/raj ..: total 196 1456508 d-wx--xr-- 3 ro... 19 Dec 2008 08:25
how can a executing bash script be paused?
Is there something unusual about pausing a bash script? I admit that I haven't done any interactive input since I started using bash. I want to use 'read' from stdin in order to slow down a loop when doing: bash -x script I tried: while [ condition ] ; do processing ... printf "%s" "Pause: " ... 19 Dec 2008 11:56
modifying: eval 'find . -maxdepth 1'
I have the following command which performs a find on the current directory and works perfectly: FILE_COUNT=$( eval 'find . -maxdepth 1' "${OPT}" |wc -l |sed 's/^[ ] *//' ) However, I now want to modify that command to work not just on the current directory but to a variable. However, because the dot (. (th... 12 Dec 2008 05:58
Filtering two files with uncommon column
I would like to know the best way of generating filter of two files based upon the following condition I have two files. Contents of the first file is File 1 abc def hij asd sss lmn hig pqr mno File 2 jih def asd poi iuu wer wer pqr jjj I would like have the output as Output File1 asd sss lm... 18 Jan 2008 09:47
creating arrays from text files
Hi, I have a file that looks like this: <MOID> 1 2 2 </MOID> <MOID> 3 4 5 </MOID> <MOID> 4 5 6 </MOID> ---------------------------------------------------------------------------------------- And I want to convert it to this: moid1,1 moid1,2 moid1,2 moid2,3 moid2,4 moid2,5 moid3,4... 14 Jan 2008 15:39
zsh+OSX: how to cope w spaces in fnames?
I recently switched to OS X for my home computer. One recurrent source of headaches is the proliferation in OS X of filenames with embedded spaces. This means that many of my habitual shell interaction practices fail; e.g. anything like % for i ( *.mp3 ) frobnicate $i will fail with errors like fr... 10 Dec 2007 00:52
reading lines from standard input or a two way pipe into an array
Hi I'm trying to read the output of 'ls -lartF' into an array, a line into each array element I've tried to do this in 3 different ways 1. I've managed to do this is using a two way pipe, as follows: #!/bin/ksh i=0 ls -lartF |& while read -p line; do print - "$line" aline[i]="$line" ... 10 Dec 2007 00:52
First  |  Prev |  Next  |  Last
Pages: 46 47 48 49 50 51 52 53 54 55 56 57 58