Search Results

Search: Posts Made By: rorey_breaker
12,618
Posted By rorey_breaker
Append to end of each line of file without a temp file.
Hello I am trying to append an incrimenting number to the end of each line I have it working with a temp file. But I want to do this without a temp file.


a=1
cat "file" | while read LINE
...
2,452
Posted By rorey_breaker
Thank you.
12345678910
17,582
Posted By rorey_breaker
I am needing to have the characters stored in an...
I am needing to have the characters stored in an array, so that I can compare them easily with a single character.
3,222
Posted By rorey_breaker
17,582
Posted By rorey_breaker
Is this printing the array called string ?
Is this printing the array called string ?
17,582
Posted By rorey_breaker
create array holding characters from sring then echo array.
Hi,

I wish to store $string1 in $string1array[] a character in each array element.
Then i wish to echo the entire array to the screen so that it reads as the normal string again.

I have been...
3,843
Posted By rorey_breaker
Search in variable for character
qwertyuioplkjhgfdsa
3,057
Posted By rorey_breaker
2,452
Posted By rorey_breaker
Thanks very much.
Thanks very much.
2,452
Posted By rorey_breaker
What does // do ? string//string ??
Hi,

Real easy question here, I think, just really hard to google this one.

What does the // do?
What is happening below:


if [ "${stringone//$stringtwo}" = "$stringone" ]
then
echo "...
3,442
Posted By rorey_breaker
Print Line numbers
Hi there,

if your trying to simply print your file with numbers on each line try this:


#!/bin/bash

set -- $( cat inputfile )

while [ "$int" -le "$lineno" ]
do
eval line=$1
echo...
8,458
Posted By rorey_breaker
Echo var1,var2,var3,var4,var5,var6 in loop help
Hello,

I have created numerous variables called $mask1 $mask2... $maskN. I wish to echo these variables, below is the code for the two functions, the first creates the variables and the second...
4,027
Posted By rorey_breaker
hmmm
I have just combined the two using:

eval realname1= ${realfirstname1}${realfirstname2}

this is part of the way, but i need the 1 and 2 at the end of those variables to be represented by intA...
4,027
Posted By rorey_breaker
Another 10 second question. Assigning 2 strings to one string.
Hi, I am trying to combine 2 strings into one new string. I know there are existing threads on this topic, but I am having troubles. The variables have variables within their names which is causing...
2,642
Posted By rorey_breaker
integer comparasion troubles.
Hi, I am trying to store the real name of currently logged in users as a variable or in an array. I have been having troubly with this, below I have it set into a variable. But when it enters the...
9,205
Posted By rorey_breaker
continuing problems
Hello again,
Havent responded for a while not had much time to play with this lately. And now that I return to have another go, I have the same problem.

lineno= grep -c '$user' '$file'

I...
9,205
Posted By rorey_breaker
grep wc
Hello, I am trying add all occurances of the current user into an ouputfile in a numbered list e.g. 1 ) username......

I have a problem thou, the grep seach word count is not assigning a number to...
1,898
Posted By rorey_breaker
The cut command. Really simple question!
hi, sorry for asking what I am sure is a really easy question, I am wanting to cut the users real name from the output of 'finger'.

$ cut -f2-3 filename

is in my script but it only seems to...
13,039
Posted By rorey_breaker
thanks
I will give that go - Thanks for your help!
13,039
Posted By rorey_breaker
Variable in Variable name?
Hi I am writing a script to show the current users and their current processes along with their actual name, tty, pid etc...

I am thinking the best method is to cut the infomation from the who,...
Showing results 1 to 20 of 20

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