Search Results

Search: Posts Made By: magnus29
Forum: Linux 10-21-2015
3,960
Posted By prvnrk
your 3rd,4th & 5th lines are culprits. Try this: ...
your 3rd,4th & 5th lines are culprits. Try this:

# Default IPtables config
*filter

-A INPUT --src 172.1.1.1 -j REJECT
-A OUTPUT --dst 172.1.1.1 -j REJECT

-A INPUT -j ACCEPT
-A OUTPUT -j...
13,538
Posted By jgt
Those are pcl5 escape sequences. Search pcl2txt. ...
Those are pcl5 escape sequences. Search pcl2txt.

---------- Post updated at 08:16 AM ---------- Previous update was at 07:25 AM ----------

If you want to write your own, the general rule is,...
Forum: Red Hat 10-08-2015
10,608
Posted By jgt
Have you tried pcl2ps. Your source document is a...
Have you tried pcl2ps. Your source document is a PCL5 print file.
13,538
Posted By zaxxon
I currently have no file to test and not aware...
I currently have no file to test and not aware how to produce such but you can try this:

tr -d '[[:cntrl:]]' < infile > outfile
Forum: Red Hat 10-07-2015
10,608
Posted By prvnrk
Did you try a2ps ? If you don't have it, you...
Did you try a2ps ?

If you don't have it, you can install using yum install a2ps
1,128
Posted By Akshay Hegde
$ awk 'sub(/[[:digit:]]+/,new,$NF)' new="1" file ...
$ awk 'sub(/[[:digit:]]+/,new,$NF)' new="1" file
[FEN "1rr2b1k/3q1P1p/p4p2/1pp1p2B/2PpP2P/1P1P4/P3Q3/R1B3RK w - - 0 1"]
[FEN "2bqk1r1/p4p2/1p2pQp1/1n1pP1Bp/7P/3P2N1/P4PP1/6K1 w - - 0 1"]
[FEN...
1,146
Posted By RudiC
Try awk '$5^2>9{split ($2, T, "[:.]"); sub...
Try awk '$5^2>9{split ($2, T, "[:.]"); sub (/\..*$/,"",$1);print $1":"T[1]*3600+T[2]*60+T[3]}' file
01:885
02:1288
03:824
04:1227
06:699
1,084
Posted By Chubler_XL
try this script: infile=$1 val="$2" ...
try this script:

infile=$1
val="$2"
new="$3"
awk -vv="$val" -vn="$new" '
$0 ~ "VALUE \"" v "\"" {
gsub("[[]Result[^\n]*\n", "[Result \"" n "\"]\n")
}
1' RS='' ORS='\n\n' OFS='\n' $infile
1,084
Posted By Yoda
awk -v S="X9Y8Z7" -v R="LOSS" ' ...
awk -v S="X9Y8Z7" -v R="LOSS" '
/Result/ {
v = $0
getline
if ( $2 ~ S )
sub ( /\"[A-Z]*\"/, "\"" R "\"", v )
...
Showing results 1 to 9 of 9

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