Search Results

Search: Posts Made By: gaurav99
1,665
Posted By gaurav99
@Rudic: The output of the command: awk...
@Rudic: The output of the command:
awk '/--(a-|m-|-c)-/ {print $(NF-1)} ' required.txt
--a--
--m--
---a-


@kenshinhimura (https://www.unix.com/members/302037296.html)


There is no output...
1,665
Posted By gaurav99
Hi , I am using bash in cygwin. Can you...
Hi ,

I am using bash in cygwin. Can you please elaborate ?

So far I have

cat required.txt | grep -e --a-- -e --m-- -e ---c- | awk '{print $(NF-1)}'Output:
\Libs\test1\test1\test1.txt
...
1,665
Posted By gaurav99
Delete all files from the directory except the ones in the log file
I have a log file with contents like below.
Repository: https://someserver:9443/
Workspace: (1000) "test_scripts_ws"
Component: (1001) "some_Automated_Scripts"
Change sets:
(1002)...
8,446
Posted By gaurav99
Oh ok .. Entered . /etc/profile ...
Oh ok ..

Entered

. /etc/profile

output

/etc/profile: not found
8,446
Posted By gaurav99
I entered the ./etc/profile on IBM-i and I get ...
I entered the ./etc/profile on IBM-i and I get

./etc/profile:not found

I missed the output below. Apologizes.

I mean to say

cd /to/path/to/wsadmin and ran the command

wsadmin...
8,446
Posted By gaurav99
I am using the same user to login through the...
I am using the same user to login through the IBM-client. When I login through the client I have to enter the command STRQSH (stands for start qshell) to enter into the q-shell and then I can use all...
8,446
Posted By gaurav99
Just a clarification so we are on the same page ...
Just a clarification so we are on the same page
...
8,446
Posted By gaurav99
Please let me know if my explanation isn't clear....
Please let me know if my explanation isn't clear.

---------- Post updated at 01:32 PM ---------- Previous update was at 01:28 PM ----------

This is the first time I started the wsadmin utility...
8,446
Posted By gaurav99
I am trying to invoke a scripting utility called...
I am trying to invoke a scripting utility called wsadmin on ibm-iseries.

Steps below to invoke the scripting client on I-series through IBM-I command line utility

1. login through the...
8,446
Posted By gaurav99
Running q-shell commands( on IBM-i Series) from cygwin terminal (on windows)
I have cygwin installed on windows server and when I do

echo $SHELL the output is

/bin/bash


I have created a ssh tunnel from this windows server through cygwin to ibm -i series which...
5,261
Posted By gaurav99
@bartus11: Thanks a lot it works great...!!!:b:...
@bartus11: Thanks a lot it works great...!!!:b: One last question how to include a echo statement if any one of the files passed as parameters are not present in the directory.
5,261
Posted By gaurav99
New to perl :( Not familiar with hashes
New to perl :( Not familiar with hashes
5,261
Posted By gaurav99
Perl : Delete all files except few
I have a directory like below. Need help with Perl to delete all files under test1 except the one passed as parameters.The parameters will
always be the directories under test1 in the format below....
3,327
Posted By gaurav99
@bartus11 : I am trying to run this by...
@bartus11 :

I am trying to run this by putting in a shell script on cygwin. This is the error I get

Can't do inplace edit without backup.

@in2nix4life


This works when I run it on CMD...
3,327
Posted By gaurav99
C:\>perl -i -spe 's!</display-name>!.$d$&!' --...
C:\>perl -i -spe 's!</display-name>!.$d$&!' -- -d=`date +"%m_%d_%Y_%H_%M_%S"` we
b.xml
The system cannot find the file specified.
'!'' is not recognized as an internal or external command,...
3,327
Posted By gaurav99
Perl:Script to append date and time stamp
Help with Perl script :

I have a web.xml file with a line

<display-name>some_text_here</display-name>

Need to append the current date and time stamp to the string and save the XML file ...
3,928
Posted By gaurav99
I see no files being deleted. There are many...
I see no files being deleted. There are many files that are similar in dir1 and dir2 and none of them got deleted.

Attached is the zip I created for your reference. It has two directories dir_1...
3,928
Posted By gaurav99
diff -s --exclude --recursive --brief -b dir1...
diff -s --exclude --recursive --brief -b dir1 dir2 | head -10

Common subdirectories: dir1/aix and dir2/aix
Common subdirectories: dir1/envsql and dir2/envsql
Common subdirectories: dir1/java and...
3,928
Posted By gaurav99
Tried this initially. Did not work. The output...
Tried this initially. Did not work. The output was rm.

diff -s --exclude --recursive --brief -b dir1 dir2 | awk '/identical$/ {print $4}' | xargs echo rm
Then tried this it showed everything in...
3,928
Posted By gaurav99
Correct. I only need newer and changed files in...
Correct. I only need newer and changed files in dir2.
3,928
Posted By gaurav99
example: from the above diff output I want to...
example: from the above diff output I want to extract files

abc9991.java
abc9933.java
g025_abc.dpc
gc_cvb_jrp_1650_abc.dpc
gc_k_jrp_502901690_abc.dpc
abc_bcda640921_bcd.sp...
3,928
Posted By gaurav99
Help with diff output
I am running diff between two directories dir1 and dir2.

diff --exclude --recursive --brief -b dir1 dir2

The output of the above command is

Files dir1/java/abc/bcd/abc9991.java and...
5,790
Posted By gaurav99
abcdefg :-)
abcdefg :-)
5,790
Posted By gaurav99
I am using CVS installed on AIX. There is a file...
I am using CVS installed on AIX. There is a file called commitinfo in CVS which recognizes the regular expression entries. Below is the link to description of the commitinfo file and its usage in...
5,790
Posted By gaurav99
I tried the ^abcdef first but then it matched...
I tried the ^abcdef first but then it matched other strings like abcdefghi. So I wanted to match the exact string.

I tried to put in ab.ghi. Still not working.:( Please help.
Showing results 1 to 25 of 32

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