Search Results

Search: Posts Made By: NDxiak
2,865
Posted By NDxiak
Got it Thx :)!
Got it Thx :)!
2,865
Posted By NDxiak
Thank you, So I assume that I have to put...
Thank you,

So I assume that I have to put sleep 1 in front of each command ??
and what about echo ?
:)
2,865
Posted By NDxiak
Let me try to rephrase this, I have one...
Let me try to rephrase this,

I have one script lets call it script1.sh

And this script includes multiple commands inside

I would like to run those commands 1 at the time after one...
2,865
Posted By NDxiak
Running Multiple Times ?
hey mates,

I was wondering if someone could assist me with this one, I have couple scripts that I would like to invoke from .sh ( One after another )

Script1
Script2
Script3

Is it possible...
Forum: Ubuntu 12-30-2009
12,653
Posted By NDxiak
Getting Subsystem ID/Vendor
Hey Guys ...

How I can look up Subsystem ID of the WIFI card under Ubuntu...

I did try lspci but its outputting only Vendor and Dev no subsys ...


I need same data as below ( Windows )

...
3,556
Posted By NDxiak
Apache/CGI Bin Accessing mounted SMB share
Hey Guys,

I need to copy some files from my Apache server to SMB share ...

copy $file,"/Volumes/v1/x/test/$datestamp$name$suffix"

Unfortunately this command when executed from...
3,007
Posted By NDxiak
Perl - Posix macro
Hey Guys,

I'm trying to execute this ..

chdir "/Volumes/c/d"
or die "Wait for ...... then run script $!\n" ;

for my $file (<Color.png>)
{ my ($name,$path,$suffix) =...
1,511
Posted By NDxiak
no Samba .. Its between to macs ...
no Samba .. Its between to macs ...
1,511
Posted By NDxiak
Rename /Script
Hi Guys,

Here I have a simple rename script ... works perfectly fine. When files are on local machine ... But it will not work with the files on the server ...

Server is mounted
Path to...
2,861
Posted By NDxiak
Hey, Thank you ... Global symbol...
Hey,

Thank you ...

Global symbol "$content" requires explicit package name at test2.pl line 10.
Global symbol "$content" requires explicit package name at test2.pl line 11.
Global symbol...
2,861
Posted By NDxiak
[Perl] Printing - Scalars
Hey Guys,

I have some weird problem with printing scalars ...
When I'm executing script both are printing in terminal ...
But only one is printed to the file ?

I don't know whats going on .....
1,917
Posted By NDxiak
This code works almost as I would like it .. the...
This code works almost as I would like it .. the only problem is that is not adding text in front of existing line ...

perl -i -ple 'print q{Text to Insert} if $. == 9; close ARGV if eof' data.txt
4,308
Posted By NDxiak
I would really appreciate that .. It would be...
I would really appreciate that .. It would be great for future reference.

Thank You very much.
1,917
Posted By NDxiak
Hey I guess I need to put (\t\t) for Tabs ? And...
Hey I guess I need to put (\t\t) for Tabs ?
And again how I can specify that Line2 will have Prefix ABCD Line3 EFG etc ?

perl -pi -e 's/\t/$1 TEST $./' data.txt

Because right now It only...
1,917
Posted By NDxiak
Perl - Inserting text
Hey,

I have 10 lines of text ... And I would like to Insert prefix for each line with static text.

perl -pi -e 's/()/$1 TEST$./' data.txt

Each line will have different static prefix, Code...
4,308
Posted By NDxiak
Hello, Thank You, Actually minute before you...
Hello,

Thank You, Actually minute before you I was able to get it working using code below, Thx anyways... :)

perl -pi -e 's/\xA5/replace/g' data.txt

question is ... I would like to save it...
4,308
Posted By NDxiak
xlm22-:Desk admin$ sed 's/\xA5/X/' data1.txt ...
xlm22-:Desk admin$ sed 's/\xA5/X/' data1.txt
???????
w? 123456 123456
w? 123456 123456
w? 123456 123456
w? 123456 123456

Thank You, But somehow its not working ...
Its just printing...
4,308
Posted By NDxiak
SED and replacing Txt Bullet
Hi Guys,

I'm sure that there is simple solution .. I googled .. it and nothing is coming up ... ( I Tried it as hex 0xE2 no luck )

sed -e 's/•/X/g' data.txt > data1.txt

I'm trying to replace...
1,857
Posted By NDxiak
I guess that Im being stupid and I should include...
I guess that Im being stupid and I should include more stuff in this code ?
I tried to research those functions -pi -e but google its not helpful at all

command to execute if it matters "perl...
1,857
Posted By NDxiak
Thank You ! I have problem with running this...
Thank You !

I have problem with running this script
1,857
Posted By NDxiak
Hey, Sorry for confusing you ... I got...
Hey,

Sorry for confusing you ...
I got bullet thing resolved so thank you anyways...

And replacing ...
Before:
w• Test-LinesXtra: 123456 123456
w• Test-LinesXtra: 123456 123456

After:...
1,857
Posted By NDxiak
Perl: Instering Names in to Text.
Hello my friends,

So I'm trying to insert some extra text in to text file/lines.

w• Test-LinesXtra: INS ABC 123456 123456
w• Test-LinesXtra: INS DEF 123456 123456
w• TestLinesXtra:...
Showing results 1 to 22 of 22

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