Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Nafanja
3,011
Posted By Nafanja
Thanks a lot!!!!! I got it!!! :b:
Thanks a lot!!!!! I got it!!!
:b:
3,011
Posted By Nafanja
Is it possible to re-assign the variable form the loop?
Good day, everyone!
I've got a small problem with re-assigning the variable form the loop. What I'm trying to do is:

#!/bin/bash/
VAR1="AAA"
VAR2="BBB"
VAR3="CCC"

for WORD in VAR1 VAR2...
3,375
Posted By Nafanja
What i'm trying to achieve is to combine those...
What i'm trying to achieve is to combine those two variables so the output would look like a proper name. If i'm running 'tr' on it's own the result is really messy, looks like a single letter...
3,375
Posted By Nafanja
'tr' confusion
Good day, everyone!
Could anybody explain me the following situation.
If I'm running similar script:

Var="anna.kurnikova"
Var2="Anna Kurn"
echo $Var | tr -t "$Var" "$Var2"


Why the output...
1,533
Posted By Nafanja
Thank a lot! :b:
Thank a lot!
:b:
3,064
Posted By Nafanja
Thank you very much. That's helped a lot! :b:
Thank you very much. That's helped a lot!
:b:
3,064
Posted By Nafanja
The main problem i'm having with vi is, that i...
The main problem i'm having with vi is, that i understand how to open a file on specific line, the thing I don't get is how to save the changes. For example, I've been trying to do something like...
3,064
Posted By Nafanja
Which editor to use?
Good day, everyone!
I've started using/learning UNIX recently and the only problem i get, is that I can hardly edit a file from within the script (searching/replacing, extracting, ect.) I've tried...
1,533
Posted By Nafanja
Search withing the line
Good day, everyone!
I've got a small question to ask. If I'm getting the value for variable in following way:

LINE=$(grep "search word" myfile)

How can I access the n-th word on this line?...
Showing results 1 to 9 of 9

 

Featured Tech Videos

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