Search Results

Search: Posts Made By: teresaejunior
11,757
Posted By teresaejunior
Sorry lad, I was almost sleeping!!! Hahaha ...
Sorry lad, I was almost sleeping!!! Hahaha

---------- Post updated at 01:09 PM ---------- Previous update was at 12:54 PM ----------

This leaves only the letters and numbers (removes ©...):
...
11,757
Posted By teresaejunior
Not in all...
Not in all shells:variable=${variable/%\.zip}---------- Post updated at 11:53 AM ---------- Previous update was at 11:49 AM ----------

What you're looking for:
example=$(ls /temp | sed...
11,757
Posted By teresaejunior
Remove numbers and lettersvariable=$(printf...
Remove numbers and lettersvariable=$(printf "$variable" | sed 's/[0-9a-zA-Z]//g')

Remove zip extensionvariable=$(printf "$variable" | sed 's/\.zip$//g')
2,044
Posted By teresaejunior
Have you already considered rsync? man rsync
Have you already considered rsync? man rsync
15,503
Posted By teresaejunior
See what I get in my desktop as an ordinary...
See what I get in my desktop as an ordinary user:┌╸teresaejunior@localhost ╍ ~╺
└─╍ /bin/login
login: Cannot possibly work without effective root
So ajaxterm, xwiterm, or any other emulator that...
15,503
Posted By teresaejunior
You are going to need root access to install...
You are going to need root access to install Webmin on the host for ajaxterm. Later you can assign permissions to users to use modules such as ajaxterm, but as you have stated, it could drop the user...
3,519
Posted By teresaejunior
Hello, bartus, thanks! I think I'm almost...
Hello, bartus, thanks!

I think I'm almost there: the file's got 3792 lines; with no duplicates (using sort -u | wc -l) it has 3378; and with your awk command it has 3384. So I think there are...
15,503
Posted By teresaejunior
I have Webmin installed on my machine, and it has...
I have Webmin installed on my machine, and it has a nice new module called "ajaxterm" and I've just tried it and yes, it supports such interactivity! And does very good! Commands like "read" and...
15,503
Posted By teresaejunior
I think only PHP would be very limited... ...
I think only PHP would be very limited...

This one uses PHP+Ajax for the interactivity you want xwiterm - eXtreme Web Interactive Terminal - Google Project Hosting...
3,519
Posted By teresaejunior
Delete first block of text with sed/awk
Hello, guys!

"filename" has blocks with three lines each in this fashion:
93909286
#verified
has one bug
10909286
#unverified
pending
10909286
#unverified
...
2,376
Posted By teresaejunior
$bbx01 should become $bbx02 $btn03 should...
$bbx01 should become $bbx02
$btn03 should become $btn04...
2,376
Posted By teresaejunior
Here is a few lines: $bbx01 = new...
Here is a few lines:

$bbx01 = new GtkHButtonBox();
$bbx01->set_layout(4);
$btn03 = GtkButton::new_from_stock(Gtk::STOCK_CANCEL);
$btn03->connect_simple('clicked', array($wnd01,...
2,376
Posted By teresaejunior
@michaelrozar17 almost there! It works on a...
@michaelrozar17 almost there!

It works on a file with numbers only. The file has all kinds of content, and I want to replace only the numbers.

$ sed "s/[0-9]\{1,2\}/expr & + 2/e" filename
...
2,376
Posted By teresaejunior
Hello, yazu! What do you mean with "for my...
Hello, yazu! What do you mean with "for my purposes"? Isn't is possible in any way to manipulate the ampersand?

Also, how could I do it in awk?

Thank you!
2,376
Posted By teresaejunior
Manipulate "&" in sed
Is it possible to manipulate the ampersand in sed? I want to sum +1 to all numbers in a file. Example that doesn't work:sed "s/[0-9]\{1,2\}/$(expr & + 1)/g" filenameAlso, how to return 02 instead of...
Forum: UNIX and Linux Applications 11-11-2010
15,341
Posted By teresaejunior
Again, because you've mentioned Xubuntu, I...
Again, because you've mentioned Xubuntu, I expected you to be using the "GNU coreutils" besides bash. The option --color=auto will output this error in MAC OS X, or BSD, for example, unless you...
Forum: UNIX and Linux Applications 11-09-2010
15,341
Posted By teresaejunior
You were talking about Xubuntu, so I expected you...
You were talking about Xubuntu, so I expected you to be using some similar system or bash. I have never seen this output so...

printf "alias ls='ls --color=auto'\n" >> $HOME/.bashrc

means...
10,073
Posted By teresaejunior
Thank you! $ echo "u_sA9e-u" | grep -oE...
Thank you!

$ echo "u_sA9e-u" | grep -oE '([[:space:]]|^)[a-z_][a-z0-9_-]*[$]?([[:space:]]|$)'
$ echo "u_s9e-u" | grep -oE '([[:space:]]|^)[a-z_][a-z0-9_-]*[$]?([[:space:]]|$)'
u_s9e-u
1,878
Posted By teresaejunior
for file in /home/joule/unix/archive/*.gz; do ...
for file in /home/joule/unix/archive/*.gz; do
zcat "$file" | grep 20101108
done

or

for file in /home/joule/unix/archive/*.gz; do
zcat "$file" | grep $(date "+%Y%m%d")
done
Forum: UNIX and Linux Applications 11-08-2010
15,341
Posted By teresaejunior
printf "alias ls='ls --color=auto'\n" >>...
printf "alias ls='ls --color=auto'\n" >> $HOME/.bashrc
. !$
10,073
Posted By teresaejunior
Hello! I have the following alias: alias...
Hello!

I have the following alias: alias grep='grep --color=auto', and the difference between the following commands is that the one which outputs colors is with the 'x', the other is black and...
10,073
Posted By teresaejunior
$ echo "u_sA9e-u" | grep -E...
$ echo "u_sA9e-u" | grep -E "([[:space:]]|^)[a-z_][a-z0-9_-]*[$]?([[:space:]]|$)"
u_sA9e-u


Any ideas?
10,073
Posted By teresaejunior
Thank you, bakunin! But it still greps the "A",...
Thank you, bakunin! But it still greps the "A", or I'm doing something wrong... The idea is: we prompt the user for a string, and then we check if it matches the criteria. So the echo thing is...
10,073
Posted By teresaejunior
grep fixed string with regex
Hello, all! Maybe the title is badly formulated, you can help me with that...!

I'm using the GNU grep, and I need to make sure that grep will extract only what I tell it to.

I have the...
1,784
Posted By teresaejunior
remove me!
Clicked on post twice, sorry:

https://www.unix.com/shell-programming-scripting/147954-grep-fixed-string-regex.html#post302469753
Showing results 1 to 25 of 59

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