Search Results

Search: Posts Made By: outthere_3
10,055
Posted By outthere_3
reply
open(F, "<file") or die "cannot open file:$!\n";
while ( <F> ) {
if ( /nul/ ) {
@a = split(/nul/);
print $a[0] . "]\n";
}
}
close(F);

can you please explain this line by line for me.
1,762
Posted By outthere_3
changing text
i all,

I thought I would restructure my question.

Is there a way you can get rid of characters in a line if you know what number they are.

eg,

if this was a line

you could see there...
10,055
Posted By outthere_3
removing text
perl -pi -e 's/^(\Q[na *oparea* check \E\d+).*/$1]/' file

perl -pi -e 's/(\[na\s+\*oparea\*\s+check\s+\d+)\s+nul\s+\d+\s+nlr\s+\d+\s+eul\s+\d+\s+elr\s+\d+\]/\1]/' newfile

I have tried both of...
10,055
Posted By outthere_3
Removing text from a line in a file
Hi All,

I would like to know how to remove text from a line in a file.

eg

[na *oparea* check 0 nul 6376000 nlr 6374000 eul 318000 elr 320000]

to

[na *oparea* check 0]

The 4 sets...
4,438
Posted By outthere_3
hi fpmurpy Thanks for getting onto it so...
hi fpmurpy

Thanks for getting onto it so quick.

This has worked to some extent but now I have this problem

tsal314384'i' instead of tsal314384i'

Do you know what is happening here.
...
4,438
Posted By outthere_3
using sed to add letter after variable
Hi All,

I need to have a sed command insert the letter i at the end of some lines in a file.

Problem is that where I want to add the i is after variables that change in each file

eg, ...
45,753
Posted By outthere_3
Creating a txt file
Hi All,

I would like to know if you can set up in part of a script for the script to create a txt file and put some predetermined text into it.

#Example

make file example.txt

#Then it...
2,704
Posted By outthere_3
bash shell script
My friend you truly are a legend.

Thankyou

Jeremy
2,704
Posted By outthere_3
Bash shell script
Hi Guys,

I am trying to alter a script for my company.

I need the start of it to go something like this.

User is asked to input 8 numbers
8 numbers are written to a txt file
***** *****...
Showing results 1 to 9 of 9

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