Search Results

Search: Posts Made By: kofine05
9,661
Posted By Yoda
Yes it does make sense. Good work! By the...
Yes it does make sense. Good work!

By the way if there are multiple sessions from same user, you can use sort to get rid of duplicates. Check the sort man pages to understand how to get unique...
9,661
Posted By Yoda
I would recommend to use who instead of w because...
I would recommend to use who instead of w because then you don't have to worry about skipping the header lines that is present in w output.

You have to pipe who output to sed, use regular...
4,110
Posted By joeyg
That is one way to create a file
Also, you could
$ echo one two three >sample2.txt

$ cat sample2.txt
one two three


However, what you wrote did not say a file but a variable!
9,661
Posted By Yoda
Share your thoughts on solving this question?...
Share your thoughts on solving this question? Show us what have you tried so far?
4,110
Posted By joeyg
A shell program is simply a collection of...
A shell program is simply a collection of commands. And when the commands are put together, the desired result is achieved.

The #1 tells you the variable TEXT and the command to be used tr.
What...
4,110
Posted By Corona688
To delete spaces from a file: tr -d ' ' <...
To delete spaces from a file: tr -d ' ' < inputfile > outputfile

To do this to a string in the shell you must use echo and pipes.
Showing results 1 to 6 of 6

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