Search Results

Search: Posts Made By: salman4u
40,373
Posted By salman4u
thanks Whiteboard :) yeah you are right! a more...
thanks Whiteboard :)
yeah you are right! a more simple code (if any exists) would be more interesting because it requires writing 26 *4 characters
anyways thanks a lot Whiteboard.
3,964
Posted By salman4u
thanks Shahul :) it's working smooth
thanks Shahul :) it's working smooth
3,964
Posted By salman4u
thanks for your effort Whiteboard but 'amar' is...
thanks for your effort Whiteboard but 'amar' is enclosed in quotes. In your file the amar is not enclosed in quotes, i want "'amar',akbar" to be replaced with "'anthony'" (ignore double quotes)
40,373
Posted By salman4u
amitranjansahu :) you are very funny !! i...
amitranjansahu :)
you are very funny !!
i meant i want to reverse the case i want both of them to happen at the same time

suppose file contents are

Laala TIWAri

then the output should be...
40,373
Posted By salman4u
thanks amitranjansahu :) but why can't i use...
thanks amitranjansahu :)
but why can't i use character class??
also the solution that you gave will transform from lower to upper case what if i want to reverse the case? i mean the letters that...
40,373
Posted By salman4u
sed help to convert from lowercase to uppercase and vice versa!
Hello,
can sed be used to convert all letters of a file from uppercase to lowercase and vice versa?i know tr command can be used but with sed is it possible?
i came up with this :-


sed...
3,964
Posted By salman4u
sed command to replace 'amar',akbar with 'anthony'
Hello,
just needed the help to replace 'amar',akbar with 'anthony' in sed. Here is what i tried but couldn't succeed


sed 's/''amar'',akbar/''anthony''/' file1


thanks in advance :)
6,362
Posted By salman4u
thanks pludi :) you're the man. You replied in...
thanks pludi :)
you're the man. You replied in a very straight forward manner that even a beginner like me could understand
thanks man again :)
6,362
Posted By salman4u
What does the following command do?
Hello,
what does this follow command imply?

ls -l | sed -n '/^.{5,8\}w/p'


Thanks in advance! i got confused seeing this command in one of the book's exercise
2,180
Posted By salman4u
thanks a lot ripat :)
thanks a lot ripat :)
2,180
Posted By salman4u
sure input s01 lula 6 75 65 55 195 ...
sure

input


s01 lula 6 75 65 55 195
s02 tutu 6 85 90 90 265
s03 laala 5 55 65 75 195
s04 butterkhor 6 70 70 70 210
s05 kuku 7 50 50 40 140


output

s03 laala 5 55 65 75 195
s02 tutu...
2,180
Posted By salman4u
sort command help needed.
Hello,
suppose i have a student.dat file whose format is

studentno studentname semester marks1 marks2 marks3 total

then how can i sort first in semester wise and then total wise? I mean...
11,894
Posted By salman4u
THANKS R.T. such a silly mistake wasted my 30...
THANKS R.T.
such a silly mistake wasted my 30 mins in morning.
thanks again :)
11,894
Posted By salman4u
awk help needed in trying to count lines,words and characters
Hello,
i am trying to write a script file in awk which yields me the number of lines,characters and words, i checked it many many times but i am not able to find any mistake in it. Please tell me...
3,754
Posted By salman4u
ya you are right divyang. Actually i had to run...
ya you are right divyang. Actually i had to run this command from college to get a better idea. You are right it gives calculated time.
3,754
Posted By salman4u
last also doesn't give directly the total time...
last also doesn't give directly the total time user logged in? it gives just starting and ending time, and i cant subtract date directly like loggedOutTime - loggedInTime. Unix doesn't permit me...
2,539
Posted By salman4u
thanks cfajohnson :) you solved my problem.
thanks cfajohnson :)
you solved my problem.
51,993
Posted By salman4u
Thanks again Franklin52 :) now things getting...
Thanks again Franklin52 :)
now things getting into my mind.
3,754
Posted By salman4u
How can one know how much time user logged?
Hello,
i know who command gives you the time when particular user logged in. And subtracting today's date and time from the one found in who we can get how much time user logged in. But this can get...
2,539
Posted By salman4u
how to change the current file processing to some other random file in awk ?
Hello,
say suppose i am processing an file emp.dat the field of which are
deptno empno empname etc
now say suppose i want to change the file to emp.lst then how can i do it? Here i what i...
51,993
Posted By salman4u
also why is this not working? BEGIN{ ...
also why is this not working?


BEGIN{
system("date \"+%H-%M\"")|getline d
}
{

}
51,993
Posted By salman4u
thanks Franklin52, the last one is the easiest...
thanks Franklin52,
the last one is the easiest for me haha! and can you please tell me how can i do the following in awk script file?


for i in `ls`
do
echo $i
done
51,993
Posted By salman4u
How to use shell command in awk ?
Hello,
i was just wondering how can i use shell command in awk script file? say suppose i want to print the date at the top of the report i generate using awk how can i do that? Thanks in advance! :)
16,215
Posted By salman4u
cfajohnson :) You're the man. Thanks!!
cfajohnson :) You're the man. Thanks!!
16,215
Posted By salman4u
I dont think you can compare strings with -le -gt...
I dont think you can compare strings with -le -gt -ge. It's meant for only integer comparison.
Showing results 1 to 25 of 47

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