Search Results

Search: Posts Made By: royzlife
4,490
Posted By royzlife
Hi, I have used this and fits almost...
Hi,

I have used this and fits almost perfectly. Only thing is that i dont want the total count of 'human' to be added in the output.
How do I change that?

thanks in advance.
4,490
Posted By royzlife
Hi ctsgnb, Kindly please explain the command...
Hi ctsgnb,
Kindly please explain the command you have pasted. It gives the output without formatting - its fine.
Also if the line would have been ...
Hello, i am human and name="ABCD" now.

In...
4,490
Posted By royzlife
Hi R Singh, Thanks for your reply. I missed...
Hi R Singh,

Thanks for your reply. I missed mentioning one info that is the values after "name=" are not static/fixed but can change/dynamic. I used ABCD/PQRS/XYZ as examples only.

Its like...
4,490
Posted By royzlife
Search string within a file and list common words from the line having the search string
Hi,

Need your help for this scripting issue I have. I am not really good at this, so seeking your help.

I have a file looking similar to this:

Hello, i am human and name=ABCD.
How are you?...
17,109
Posted By royzlife
I think the question should be re-modified - ...
I think the question should be re-modified -

in a file we have the following lines -
xxxx^Ayyyy^Azzzz^ATAG001^A12345^ATAG002........
qqqq^Awwww^Aeeee^ATAG001^A56789^ATAG002........

The...
17,109
Posted By royzlife
Find Word within ^A delimiter
I have a file in which the following pattern is there
TAG001^A<value>^A

I want to find all such values(words) which comes right next to "TAG001^A" and before the next "^A".

^A is the delimiter...
14,244
Posted By royzlife
achenle, can you help - i have done this: ...
achenle,
can you help -
i have done this:

while read file
do
dir = `dirname $file`
print $dir
done < latest.txt


but i am getting error!

---------- Post updated at 04:02 PM...
14,244
Posted By royzlife
Retrieve directory path from full file path through sh
Hi,

I have a file abcd.txt which has contents in the form of full path file names i.e.

$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt


Now I want to retrieve only the...
3,992
Posted By royzlife
Twist!
Hi Scott / Franklin,

i want the output of the following command "cleartool diff" be stored in a file -
i used :

xargs -n1 -I{} < latest.txt ksh -c "cleartool diff -pre -ser {} > diff.txt"...
3,992
Posted By royzlife
Yes Franklin i just did that but found some more...
Yes Franklin i just did that but found some more issues.

while read file
do
cp "${file##*/}" ~/targetdir/
done < abcd.txt


I had run this file using $./copy

I have already checked out...
3,992
Posted By royzlife
Sorry if this is stupid question! But the code...
Sorry if this is stupid question!
But the code that Franklin gave, what will be the extension of the file which contains the code?
if i give a.sh then while running, it says Permission Denied. :(
3,992
Posted By royzlife
Scott, one tweak is required i guess. ...
Scott,

one tweak is required i guess.

The file abcd.txt's content are actually:

./dir1/a.txt
./dir2/b.txt
./c.txt

So now I need to copy the files to a new directory but in that case in...
3,992
Posted By royzlife
Hi Scott, Its working! yes.. i also need...
Hi Scott,
Its working!

yes.. i also need to copy the files to another directory.. thats why cp command is also requried.. please help on that.
i.e
a.txt , b. txt etc needs to be copied at one...
3,992
Posted By royzlife
Execute command on first column (filename) retrieved from a file
Hi,

I have a file abcd.txt which in turn contains 20 file names as column 1.
[
$cat abcd.txt
a.txt
b.txt
...
...
...
u.txt
]
Now I want to run a command "ct co -nc" / "cp" / "mv" on each...
Showing results 1 to 14 of 14

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