i am executing below code to achive my result, but for second row the value is not coming
it should come URL like other two . url start with http:// and end with .xhtml
[QUOTE=RudiC;303012398]The number of fields (NF) seems to be different; probably due to the comma in field 8.
And, why should these transformations happen?
[CODE]SKILLED LANGUAGE - ENTER CREDENTIALS ---> skill LANGUAGE - ENTER CREDENTIALS
ACCOUNT_SERVICE + WEYANK -SEARCH ---> ACCOUNT_SERVICE + new -SEARCH
INTERACTION - SUB ORDERS - VIEW - MANAGED SERVICE 3 ---> meeting - SUB ORDERS - VIEW - MANAGED SERVICE 3[/ICODE]
Dear,
this is a live test on a website, when we click on different tabs its values changes in URL.that why the changes is seen.
my command which I am running is giving the output but in 2nd like I am getting the value for $12, actually $12 will be the URL name so is there a way with out giving field value i can print URL that too like thishttp://ad123:2015/see/.
it will solve my header issue also
i understand the value in 2nd line is more that is why the issue, so if we can print the URL there?
Please help, Sorry to write so much but I am looking for below result from input file
ACCOUNT_SERVICE + WEYANK -SEARCH,Test failed: text expected not to contain /Can not load Weyak Services details, Unknown error/,http://ad123:2015/see/
---------- Post updated at 02:21 AM ---------- Previous update was at 12:14 AM ----------
Sorry for the confusion created, i think i have not been able to put my requirement clearly
actually command I tried to get the expected output is below but due it extra , in $8 the value is not coming properly
looking for your support to achive below
If you always have the same number of fields and the last three fields do not contain commas you can replace your pipeline with just the awk command:
Which will print the fixed URL string you have requested.
If you want the output URL to be based on a URL found in the input file, PLEASE explain what rules are to be used to convert the input URL that can be found in $(NF-3) into the string that you want to be printed instead of the entire URL!
If you always have the same number of fields and the last three fields do not contain commas you can replace your pipeline with just the awk command:
Which will print the fixed URL string you have requested.
If you want the output URL to be based on a URL found in the input file, PLEASE explain what rules are to be used to convert the input URL that can be found in $(NF-3) into the string that you want to be printed instead of the entire URL!
thanks for feedback
the URL which will come as output is not static , they are dynamic so I cannot pass the specific URL name
rather of giving a URL from the file I should be able to see $3, $8 and URL(Start from http and end and see/ because those values are static and rest like server name and port change
Ah. Thank you. Finally a specification for the part of the URL that you want...
which, with your sample input, produces the output:
as requested.
If someone wants to try this on a Solaris/SunOS system, change awk in this script to /usr/xpg4/bin/awk or nawk.
I tried this but it is not working for me, i tried with nawk and it is printing all the files name available in same directory and then below error message
when i pass file name and copy paste script then below is happening
I am trying to move files which donot have same filename using
find /Users/ParijatMac/desktop/unix/new_dir -type f -mmin +"$HRS" -exec mv -n "{}" /Users/ParijatMac/desktop/unix/old_dir \; -print
but i am getting all filenames including the ones with duplicate names.Please help me to sort... (5 Replies)
I have a result like this
root@server # grep -rl maldet /etc/cron*
/etc/cron.d/maldet_daily
/etc/cron.d/malcron
/etc/cron.d/malcrondaily
/etc/cron.d/malcronweekly
What I need is, I need an if/else condition such that, if there is any output other than /etc/cron.d/maldet_daily in the... (8 Replies)
Hello....
Pls help me (and sorry my english) :)
So
I have a file (test.txt) with 1 long line.... for example:
isgc jsfh udgf osff 8462 error iwzr 653 idchisfb isfbisfb sihfjfeb isfhsi gcz eifh
How to print after the "error" word the 2nd 4th 5th and 7th word??
output well be:
653 isfbisfb... (2 Replies)
Hello,
i need help with awk.
I have this file:
cat number
DirB port 67 er_enc_out 0 er_bad_os 0
DirB port 71 er_enc_out 56 er_bad_os 0
DirB port 74 er_enc_out 0 er_bad_os 0
DirB port 75 ... (4 Replies)
I'm still beginner and maybe someone can help me.
I have this input:
the great warrior a, b, c
and what i want to know is, with awk, how can i detect the string with 'warrior' string on it and print the a, b, and c seperately, become like this :
Warrior Type
a
b
c
Im still very... (3 Replies)
i got a data file which contains all the pid,ppid,user,command,pcpu,start_time,status. I wanted to display out the pcpu which is greater than 0.
i uses awk'{if($5 > 0){print}}' filename.txt but is printing out result which not i wanted. Is there any way which i can print out those pcpu which is... (8 Replies)
Hi,
i have a function which return a variable .
serach ( paramatere) when i excute this function i get the result in the shell,
i want to print this result in a file by calling just the function.
how can i do it..
the code example is like that:
search ( )
{
..
}
the call... (0 Replies)