Search Results

Search: Posts Made By: Shell_Learner
1,983
Posted By Shell_Learner
=> echo "a/b/c/d/e/f/s/w/q/t/g/y" |awk -F \/...
=> echo "a/b/c/d/e/f/s/w/q/t/g/y" |awk -F \/ '{print $(NF-2)}'
awk: syntax error near line 1
awk: bailing out near line 1
1,983
Posted By Shell_Learner
F.. but it is giving error....
F..


but it is giving error....
1,983
Posted By Shell_Learner
Third Last Character from AWK
How to get the third last character for a delimited input string using awk?

For instance if input string is "a/b/c/d/e/f/s/w/q/t/g/y" (delimited by “/”) then output should be “t”
Similarly for...
3,156
Posted By Shell_Learner
Help Regarding AWk and IF THEN ELSE Statement
Hi,

I have a data file which contains record count.

So doing [wc -l rightfit_balancing_count.dat | awk '{print $1}'] gives me the record count stored in the file.

Now, i want to send a...
2,505
Posted By Shell_Learner
Pravin, what does (first==1){print...
Pravin,

what does (first==1){print $9;first=0;next} and i<=NF(for(i=1;i<=NF;i++)) means ??

---------- Post updated at 03:36 PM ---------- Previous update was at 03:29 PM ----------

Pravin,,...
2,505
Posted By Shell_Learner
Thanx a tonne Pravin27...really thanks...its...
Thanx a tonne Pravin27...really thanks...its working fine...but much complex to understand :(..thanks a lot..
2,505
Posted By Shell_Learner
There are two lines... The output shoould...
There are two lines...

The output shoould be

Sort
And the sort
2,505
Posted By Shell_Learner
A complex sed statement
I have following requirement.
Say, my text file contains following patterns
...
3,909
Posted By Shell_Learner
Significance of '{}' \;
What is the Significance of '{}' \; in UNIX?
32,206
Posted By Shell_Learner
How to view date during FTP
date command does not work during FTP. how can we view the system or server date during FTP.
2,203
Posted By Shell_Learner
How will we do using SED?
How will we do using SED?
2,203
Posted By Shell_Learner
Extract particular text
I executed a following sed command
=> echo "a/b/c/d/e/f/g/h" | sed 's/\/[A-Za-z0-9]*$//g'
a/b/c/d/e/f/g

Now what if I want to extract "g" from "a/b/c/d/e/f/g/h" . That is second last string...
1,318
Posted By Shell_Learner
How to delete a File.
I have a file named as -ab.dat

Now, How can I delete this. rm -ab.dat is not working.
2,564
Posted By Shell_Learner
CPP to PERL
Hi all,

can we convert a cpp program to perl scripting ?
1,411
Posted By Shell_Learner
Why are we using '!' sign ?
Why are we using '!' sign ?
1,411
Posted By Shell_Learner
Question on SED
Say for example I have a string as "/diggi/binary/d/e/f" I need the output as e ( The Second last “string”) . I want this using SED. Because using AWK its very easy.
2,780
Posted By Shell_Learner
Adding the values of two file
I have two files as Count1 and Count2. The count contains only one values as 10 and count2 contains only one
values as 20. Now I want third file Count3 as count1+Count2. That is it should contain...
2,122
Posted By Shell_Learner
so when i do a.*e then how will i get "apple the...
so when i do a.*e then how will i get "apple the apple" from "scrapple the apple"
2,122
Posted By Shell_Learner
But it is not working in my case :mad: ...
But it is not working in my case :mad:

dsing1@[/export/home/dsing1] $ --> more exp
scrapple the apple
dsing1@[/export/home/dsing1] $ --> grep a.*e exp
scrapple the apple
2,122
Posted By Shell_Learner
Query Regarding Regular Expression
Can you please tell me the meaning of .*

For eg. i have a text as "Scrapple the apple"

Now here, what does a.*e will match?
Showing results 1 to 20 of 20

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