Search Results

Search: Posts Made By: preethy
4,788
Posted By ahamed101
See if this clarifies your doubt ...
See if this clarifies your doubt


#!/bin/bash

awk '
BEGIN{

S["a"]="apple"
S["b"]="bat"
S["c"]="cat"

for(k in S){
print "Index: ", k
print "Value: ", S[k]
...
4,788
Posted By Akshay Hegde
Okay, Following just gives you matched...
Okay,

Following just gives you matched pattern, you need to have gawk,

$ awk --re-interval '/([[:alnum:]]+-){3}([[:digit:]]+,).*/' file...
1,227
Posted By pravin27
No need of "$" in open function which you posted....
No need of "$" in open function which you posted.
Suppose you store filename in variable then use that variable
e.g.
$filename="/path/to/your/file";
open(FH,"$filename") or die "Cannot open file...
1,227
Posted By MadeInGermany
It is doable in standard shell. A function is...
It is doable in standard shell. A function is easy to use:
replacexml(){
while IFS="" read -r line
do
case $line in
*'<url-pattern>/restricted/*</url-pattern>'*)
printf "%s\n" "$line"
...
Showing results 1 to 4 of 4

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