10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am trying to work on a script where it is a *(star) delimited file has a multiple lines starts with RTG and 3rd column=TD8 I want to substring the date part and
I want to replace with currentdate minus 15 days. Here is an example. iam using AIX server
$ cat temp.txt
RTG*888*TD8*20180201~... (1 Reply)
Discussion started by: Shankar455
1 Replies
2. Shell Programming and Scripting
I have multi line input(var1) and reference(var2) variables.
How to capture lines not present in var2 but present in var1?
How to capture lines present var2 but not in var1?
# configuration from server
var1="""
Custom JAX-RS
Custom Shared
Web 2.0
"""
# required configuration... (6 Replies)
Discussion started by: kchinnam
6 Replies
3. UNIX for Dummies Questions & Answers
I am getting the varible value from a grep command as:
var=$(grep "Group" File1.txt | sed 's/Group Name*//g;s/,//g;s/://g;s/-//g')
which leaves me the value of $var=xyz.
now i want to append $var value in the begining of all the lines present in the file. Can u please suggest?
Input file:
1... (10 Replies)
Discussion started by: rade777
10 Replies
4. Shell Programming and Scripting
Hi All,
I want to copy all the contents of a list of files in a folder to a particular file. i am using following command:
cat dir/* >> newFile.txtIt's not working.
Could you please help?
Thanks,
Pranav (3 Replies)
Discussion started by: Pranav Bhasker
3 Replies
5. HP-UX
Hi
I am a normal user on a HP-UX system which is meant for a large group.
There are few directories which I think i am owner of. (Name of these directories is same as my username, and I usually have all the permissions in these directories).
I was trying to give read and execute... (2 Replies)
Discussion started by: grvs
2 Replies
6. AIX
Hi Guys,
On my AIX server , I have this file "mknod" present in the /etc/ directory. When i try opening it , I dont find
any ascii characters. It shows some encryption/binary format which is not readable. Is it any executable ? what is the
purpose of having this file in etc folder? what if... (2 Replies)
Discussion started by: DBTuner
2 Replies
7. Shell Programming and Scripting
Hi ,
I am trying to check wether the variable is present in the array. please see the below code .when ever i do this its taking only the first value of the array . please advise.
###Code Snnipet ###
#!/bin/ksh
set -xv
if ]; then
echo " you have Specified the ORG ID - $1 "
... (1 Reply)
Discussion started by: padhu.47
1 Replies
8. Solaris
Hi
when trying to install the package initially that i have created on to the target host, i am getting error as below for all the files/directories during pkgadd.
WARNING: filename <not present on Read Only file system>
...........
...........
and so on.
When i do the second attempt to... (1 Reply)
Discussion started by: kiran.zamre
1 Replies
9. Shell Programming and Scripting
for j in folder1 folder2 folder3 folder4 folder5
do
find /tmp/$j -type f -newer /tmp2/newer.txt -exec cp {} /thisfolder1/ \;
done.
this only reads from folder1 and not the other folders. What's the problem here? (3 Replies)
Discussion started by: bbbngowc
3 Replies
10. Shell Programming and Scripting
Collegues
I have a number of files in a folder.
Each file I would like to exicute one shell script .
How to do it in shell
With tanks and regards
Jaganadh.G (2 Replies)
Discussion started by: jaganadh
2 Replies