Can someone tell me exactly what this code is doing?
#
# gnutest
#
# Test launch of ghostscript (gs) from a script
#
rm gnutest.ps
#
# ------- calculation that would generate file(s) to
# be plotted with gnuplot would be placed here -----------
#
gnuplot << \E-o-f2
set... (1 Reply)
Hi,
I tried this with my shell program and it didn't work:
/usr/ucb/sed '/$employeeID/d' /usr1/log/logfile
How to let sed see my variable employeeID within my shell program?
Thanks! (1 Reply)
This is my test script version:
#!/bin/sh
wget -q -O /tmp/axn 'http://www.axn.pt/programacion/'
sed -e '/^$/ d' /tmp/axn > /tmp/temp #Clean black space
sed -e 's/<*>//g' /tmp/temp > /tmp/temp1 #Remove HTML
rm -f /tmp/temp # Step by step script then clean one by one
sed... (3 Replies)
i need a sample unix awk/sed program to replace param3 in a file.
i have sample file a.dat with the following format/length (week 8, sku 20, store 20 and qty 8). all store id's which end with _2 needs to be replaced with div id 2. all store id's which end with _1 needs to be replaced with div id... (4 Replies)
The following awk script creates a file b.dat.
awk '{print substr($0,1,27),substr($2,index($2,"_")+1)," ",substr($0,49)}' a.dat > b.dat
I need this script to be modified to also sum $3 values by distinct $1 and $2
fields.
Current file
W2_2009275 2 8
W2_2009275 2 7
W1_2009275 1... (3 Replies)
I want to substitute a charactor "PAN" with "TAN" in a shell, I used sed command in shell, it wo'nt work but the same is run from command prompt it was successful. the command is
sed ' s/PAN/TAN/g ' <i/p> > <o/p>
sed ' s/^M/^M/g ' <i/p> > <o/p> (1st ^M is Ctrl+V+M, 2nd should be line feed/next... (1 Reply)
Hi All,
I'm looking for some expert help on sed/script to work out the best way to transform one xml format into another however there are a few complexities around translation.
The extra complexities are to:
1) take the start and stop time (YYYYMMDDHHMMSS) and convert to start time to unix... (8 Replies)
WOW, just WOW...
It would be mighty interesting to see shell code translated to this. Kudos to the young guy who succeeded...
'https://spectrum.ieee.org/tech-talk/computing/software/classical-chinese?fbclid=IwAR25BRl8ezV4MkiYILJM-zT3_iN4fOu7cq-CkmhN5205YyVXO-IGmXJKiGA'
Deliberately put... (3 Replies)