Search Results

Search: Posts Made By: new_learner
16,481
Posted By new_learner
Thank you very much Franklin52. Its working. :b:
Thank you very much Franklin52. Its working. :b:
16,481
Posted By new_learner
update records in a file using shell script...
Hi,

I have a file with 6 columns. First 3 columns together make unique record. I have a variable ($v) which hold a value that is obtained by a caliculaion. I have to replace value in 5th columnn...
3,146
Posted By new_learner
Hi jpradley, Thank you very much. It is...
Hi jpradley,

Thank you very much. It is working for me.

Thanks and Regards,
3,146
Posted By new_learner
built in variable to hold the name of therunning script...
Hi,

I have multiple functions that can be called by any shell script. These functions have inbuilt echo statements to logs their activity into a log file. When I run multiple shell scripts that...
6,732
Posted By new_learner
Thank you for such a detailed explanation...
Thank you for such a detailed explanation vgersh99. I really appreciate putting these details here. I dont know if I can ask this question, how do I know on which shell I am working? (I am new to...
6,732
Posted By new_learner
Thank you dr.house for giving detail script. ...
Thank you dr.house for giving detail script.

So, can I take it as a thumb rule that its better not to use piping in the case we are not sure if the commands involved in piping are going to return...
16,831
Posted By new_learner
Hey... Its strange. Initially, I got the...
Hey... Its strange.

Initially, I got the same error when I used both the script suggested by frank_rizzo and siba.s.nayak.

Later, I dont know how but when I tried after a while both the...
6,732
Posted By new_learner
return code capturing for all commands connected by "|" ...
Hi,

While I am using "|" to join multiple commands, I am not getting the return code when there is error in one of the commnads.

Eg:

b=`find /path/a*.out | xargs basename`

if [ $? !=...
16,831
Posted By new_learner
I am sorry to confuse you with dots (...). I...
I am sorry to confuse you with dots (...). I actually removed the path and place the dots. But now I replace the path and give here as it appears.

$ find /home/rajesh/data/ -name abc\* -exec cp -p...
16,831
Posted By new_learner
Hi frank rizzo, Thank you for repliying. I...
Hi frank rizzo,

Thank you for repliying. I am getting the following error:

$ find /home/../ -name abc\* -exec cp -p {} /home/.../backup/{}_bkp \;
cp: 0653-436 /home/.../backup is a directory....
16,831
Posted By new_learner
copying a pattern of files in one directory into other with new pattern names...
Hi,

I have to copy a set of files abc* in /path/ to /path1/ as abc*_bkp.

The list of files appear as follows in /path/:
abc1
xyszd
abc2
re2345
abcx
..
.
abcxyz

I have to copy them...
15,852
Posted By new_learner
Thank you very much vidyadhar85. This...
Thank you very much vidyadhar85.

This works.

Thanks and Regards
15,852
Posted By new_learner
problem with output of find command being input to basename command...
Hi,

I am triying to make sure that there exists only one file with the pattern abc* in path /path/. This directory is having many huge files. If there is only one file then I have to take its...
2,921
Posted By new_learner
Hi Batao, Thank you very much. Though I...
Hi Batao,

Thank you very much. Though I searched the site for previous postings with similar question, my attention never went to double quotes. You mentioned exactly where the problem is, and it...
2,921
Posted By new_learner
sed using variables
Hi,

I am able to use sed if I hardcode the find and replace values in a shell script.

This works:
sed -e 's/123v/4567/g' /path/aaa.txt
> /path/aaa.txt.tmp

If I use a variable, I am...
Showing results 1 to 15 of 15

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