Search Results

Search: Posts Made By: DGPickett
1,651
Posted By DGPickett
No, this just applies to the subshell of the...
No, this just applies to the subshell of the (...). Here is another example, with first page of screen output:

$ (cd GnuCash ; find * -type f|while read f; do fi [ ! -s ~/GnuCash2/"$f" ]thencp...
1,651
Posted By DGPickett
Bash $(...) DISPLAYS EVERY COMMAND
I use things like this a lot in ksh and bash, but lately bash has been printing the command for every loop:
... | while read f
do
if [ "$(cmp $f xx/$f 2>&1)" = "" ]
then
echo Differ "$f"
fi...
Forum: SCO 02-17-2015
3,611
Posted By DGPickett
Maybe you could just change the time zone $TZ to...
Maybe you could just change the time zone $TZ to get your different dates?
Forum: IP Networking 02-17-2015
1,842
Posted By DGPickett
Yiou can tunnel the local browser to the remote...
Yiou can tunnel the local browser to the remote host, too, usung ssh.
1,825
Posted By DGPickett
Seems simpler in sed:sed ' /^EXIT$/{ ${...
Seems simpler in sed:sed '
/^EXIT$/{
${
s/$/\
:JCWPROD/
b
}
N
/\n:JCWPROD/b
s/.*\n/&:JCWPROD\
/
}
'
1,670
Posted By DGPickett
Save testing, delete earlier:sed '/^0*$/!h ; $!d...
Save testing, delete earlier:sed '/^0*$/!h ; $!d ; g' file
1,807
Posted By DGPickett
Some versions or 'tr' insist on char sets in and...
Some versions or 'tr' insist on char sets in and out in square brackets, probably a POSIX thing. You could 'tr' both ' ' and ',' to '\n' or 'tr' ',' to '\n' and then "tr -d ' '". The 'tr' is very...
Forum: SCO 02-17-2015
3,611
Posted By DGPickett
Change the date on a reboot, so the entire system...
Change the date on a reboot, so the entire system is quiescent (still one session), perhaps with an init script?
15
ksh
4,470
Posted By DGPickett
The ksh can tell you version if you have command...
The ksh can tell you version if you have command line editing (set -o vi or emacs) by typing escape + ctrl-V. Some systems have an enhanced ksh93 as dtksh (in the CDE package) or the like, even if...
2,620
Posted By DGPickett
Doing date delta can be done in many languages,...
Doing date delta can be done in many languages, but for shell the easiest is the GNU date (which you can add to your system, perhaps as a user local executable) or you can search here for my tool...
6,070
Posted By DGPickett
Bold is pretty terminal specific, and done in the...
Bold is pretty terminal specific, and done in the presentation layer. Always design presentation on the end, after the data is parsed. Do you really want the shell to be the presentation tool? ...
1,807
Posted By DGPickett
My choice would be sed, but the 'tr -s' solution...
My choice would be sed, but the 'tr -s' solution is neat if you have it.
sed '
s/, */\
/g
' in_file >out_file
20,332
Posted By DGPickett
Maybe this would work better. I used its more...
Maybe this would work better. I used its more primitive cousin '-o' on old tar. Sometimes ids do not match up between systems, and root ownership is not desirable:
--owner=NAME
1,609
Posted By DGPickett
Even with ERE, you need to run it twice, perhaps...
Even with ERE, you need to run it twice, perhaps conditionally if the first hits, as you used both start and end field '|'. Otherwise, you miss the following adjacent fields on a line like:...
3,800
Posted By DGPickett
Keep it basic:while read var1 var2 do ...
Keep it basic:while read var1 var2
do
another_command # This will find var1 and var2 in its environment.
done < in_file
1,751
Posted By DGPickett
You can pick a replacement separator character or...
You can pick a replacement separator character or create the directory . . . .
6,810
Posted By DGPickett
Writing Requirements pays better than Coding . ....
Writing Requirements pays better than Coding . . . . :D
1,547
Posted By DGPickett
Can we see example desired output?
Can we see example desired output?
Forum: HP-UX 02-17-2015
7,486
Posted By DGPickett
PS: Used/Free memory in a VM system is pretty...
PS: Used/Free memory in a VM system is pretty meaningless. Once a system goes quiescent, the free memory just represents recent proceess terminations, which make a bunch of free pages. Pages may be...
Forum: SCO 02-16-2015
3,611
Posted By DGPickett
Sudden adjustments in the clock mean that timers...
Sudden adjustments in the clock mean that timers can instantly expire invalidly. Some time adjustment programs move the time gradually to the desired time so there is no disruption. In this...
3,514
Posted By DGPickett
You can put gnu date anywhere and call it when...
You can put gnu date anywhere and call it when you need yesterday, no configuration or other system level change.
3,514
Posted By DGPickett
Well, 'date' is just a program file, you can get...
Well, 'date' is just a program file, you can get a Gnu date and call it gdate or by path.

I wrote tm2tm as a more task oriented tool than date, not cluttered with clock setting. It is easy to...
1,354
Posted By DGPickett
Are the values fractional nn.nnnnnn, so they need...
Are the values fractional nn.nnnnnn, so they need to be truncated to int before counting? I assume they are in text, being space and line separated. Examples are nice. Still, with x and y ranges of...
3,983
Posted By DGPickett
If lines of text, practically the essence of...
If lines of text, practically the essence of 'split': https://www.unix.com/man-page/linux/1/split/
14,525
Posted By DGPickett
Tons of compile time for JAVA, apparently! :D ...
Tons of compile time for JAVA, apparently! :D

Is ther a Python hacker in the house? Can Ruby do this?
Showing results 1 to 25 of 500

 
All times are GMT -4. The time now is 10:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy