Search Results

Search: Posts Made By: bartsimpsong
1,146
Posted By bartsimpsong
Thank you Mr. Scrutinizer. Let me put what I...
Thank you Mr. Scrutinizer.

Let me put what I was looking for and the nice solution.
THIS IS THE COMMON WAY.
# rightmatch value pattern

echo -e ${1%$2}
echo
rightmatch value pattern...
1,146
Posted By bartsimpsong
1. I am working on a small project in my job...
1. I am working on a small project in my job where we need to run a database for a small program in redhat but we need the home directory of every user, so since we don't want to make the changes...
1,146
Posted By bartsimpsong
Inverting positions of variable & pattern
Hi, Can somebody help me to know how to invert the positions of this construct?
${variable%pattern} to ${pattern%variable} for pattern matching positions.

Example 1
var=testcase
echo {var%e}...
2,215
Posted By bartsimpsong
if variable is not set then use default value
Hi everybody. I am finishing this program but there is just one detail.
I need to define the number of files that have to be deleted in this way MAXFILES=3 ./program 1 2 3 4 if the...
2,165
Posted By bartsimpsong
Thank you very much for your help Mr....
Thank you very much for your help Mr. Scrutinizer. Your second comment was very helpful, I made the change and that works perfect. I would like to explain my idea behind the line that you mentioned....
2,165
Posted By bartsimpsong
prompt to delete each record when pattern is found
Hello!. I am working on a very simple program and I have been trying different things. This is so far what I have done and there is one small detail that still does not work. It finds all the records...
1,882
Posted By bartsimpsong
Wow! this was very simple. Option 2) worked for...
Wow! this was very simple. Option 2) worked for me and I am sure that option 3) would work as well. Thank you very much Mr ctsgnb (https://www.unix.com/members/302085304.html).
1,882
Posted By bartsimpsong
main program is not calling small other programs
I am trying to understand a program in a book and this program suppose to call other programs which are in the same folder, the other programs are called 'lu' and 'add' but for some reason when it...
1,428
Posted By bartsimpsong
Thank you
Thank you very much guys. Happens that some times I want to reinvent the wheel. Thank you thank you.
1,428
Posted By bartsimpsong
a simple loop
Does any body can help me with a loop in this example?
if [ "$i" -eq 1 -a "$#" -ge 1 ]
then
if [ "$#" -ne 1 ]
then
runner=$(grep "$1" "$2")
runne=$(grep "$1" "$3")
...
2,304
Posted By bartsimpsong
matching 3 digits at the begining and the end of the line
I have a file with hundreds of records and I need to find those records that have three digits at the beginning and the same three digits at the end.

$GREP '\([a-z]\)\([a-z]\)\([a-z]\)\3\2\1'I

...
1,632
Posted By bartsimpsong
oh! no is not homework. Too late hu!? alright...
oh! no is not homework. Too late hu!? alright thanks I will post it in the other forum then.
1,632
Posted By bartsimpsong
yep, out of 25.
yep, out of 25.
1,632
Posted By bartsimpsong
sed script
How to print the first and the third word of each line. Thanks for the help.
Showing results 1 to 14 of 14

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