Search Results

Search: Posts Made By: dev.devil.1983
1,510
Posted By dev.devil.1983
versioning would do, so for instance if a file...
versioning would do, so for instance if a file with the name abc.txt is being copied to a target directory that already has abc.txt, either of the file can be appended to abc1.txt.

Thanks,
Dev
1,510
Posted By dev.devil.1983
Copying files to a directory, renaming it if a file with the same name already exists
Hi All,

I need to copy files from one directory to another with the files to be renamed while copying if a file with the same name already exists in the target directory.

THanks,
Dev
2,218
Posted By dev.devil.1983
Thanks Don, seems to work.:b: If you could...
Thanks Don, seems to work.:b:

If you could please help me with the explanation as well.

Regards,
Dev
2,218
Posted By dev.devil.1983
Getting fields from a file having multiple delimiters
Hi All,

I have a file with a single row having the following text


ABC.ABC.ABC,Database,New123,DBNAME,F,ABC.ABC.ABC_APP,"@FUNCTION1("ENT1") ,@FUNCTION2("ENT2")",R,



I want an output...
Forum: Linux 01-15-2017
2,771
Posted By dev.devil.1983
Issues with desktop resolution on Oracle Linux 6.7
Hi All,

I have recently installed Oracle Linux 6.7 server on Virtual box 5.1. The installation went smooth and i was able to create a VM on Windows 7 as host.The issue is that the default desktop...
6,160
Posted By dev.devil.1983
Checking a single digit in a file using Grep
Hi All,

I have a file which keeps count based on completion of a certain activity. I am using the following grep command to return a '1' in case the count is zero


grep -ic "0" abc_count.txt...
3,460
Posted By dev.devil.1983
Thanks Stomp , that was helpful :)
Thanks Stomp , that was helpful :)
3,460
Posted By dev.devil.1983
Passing control back to the shell script
Hi All,

I have a shell script(test_abc.sh) with the following shell commands, which are invoking the same shell script with different parameters.

test_abc.sh

. ./test.sh abc >> test.log
....
6,109
Posted By dev.devil.1983
Thanks Rudic, worked for me.
Thanks Rudic, worked for me.
6,109
Posted By dev.devil.1983
Shell script to create runtime variables based on the number of parameters passed in the script
Hi All,

I have a script which intends to create as many variables at runtime, as the number of parameters passed to it. The script needs to save these parameter values in the variables created...
2,266
Posted By dev.devil.1983
Shellscript command to remove files starting with a certain string, and older than 3 days
Hi All,

Need help in identifying a shellscript command to remove all files on a server directory, starting with a certain prefix and also older than 3 days.
That means files created with that...
1,746
Posted By dev.devil.1983
thanks for the reply Rakesh .. space at the start...
thanks for the reply Rakesh .. space at the start of the first line isn't needed .. Also below is what I get when I run your code


awk: syntax error near line 1
awk: illegal statement near...
1,746
Posted By dev.devil.1983
Thanks Scrutinizer, This worked :) I now...
Thanks Scrutinizer, This worked :)

I now have another set of lines


<Member name="ABC"
Consolidation="~"
DataStorage="DC"
Hierarchy="DB"
>
</Member>
<Member name="000"...
1,746
Posted By dev.devil.1983
Combining two lines into one, UNIX
Hi All,

I have a file which has the following sample lines


--
<Member name="Canada"
Currency="CAD"
--
<Member name="UK"
Currency="GBP"
--
<Member name="Switzerland"
Currency="CHF"...
1,933
Posted By dev.devil.1983
Thanks for the reply again Akshay but i believe i...
Thanks for the reply again Akshay but i believe i missed out one point ..
the columns in file 2 may not be in order and may have some missing rows as compared to file one ..

eg

file 1


...
1,933
Posted By dev.devil.1983
Thanks again Akshay! The code seems to be...
Thanks again Akshay!

The code seems to be working now when i am using 'nawk' instead of awk, the system as you correctly identified is solaris only ..

one last help that i would require is...
1,933
Posted By dev.devil.1983
Thanks for the reply Akshay, but following are...
Thanks for the reply Akshay, but following are the issue that i am facing

1) The first being the syntactical error probably


$ awk 'FNR==NR{A[$2 FS $3]=$4 FS $5;next}($1=="G73" && $2 FS $3...
1,933
Posted By dev.devil.1983
1st File 2013 2013 Make200 ...
1st File


2013 2013
Make200 Make201
Merc BMW
Jpur Del
PT PT
Aug Aug
G73 V_C A 647369.3318 22055477.65
G73 V_C B 696906.5564 3455161.86
G73 V_C C 14564593.23...
1,933
Posted By dev.devil.1983
Comparing two files with numbers and taking difference in third file
Hi All,

I have two files in the following format, with numbers being defined under columns(described by a set of headers) and rows(again defined by a set of identifiers)



...
13,008
Posted By dev.devil.1983
Thanks a lot Scrutinizer, your code works like a...
Thanks a lot Scrutinizer, your code works like a charm :b::)
13,008
Posted By dev.devil.1983
Thanks a lot for the reply, this script seems to...
Thanks a lot for the reply, this script seems to be working , and finally found the version of my shell

$ [ "`echo "\c" | grep c`" ] && echo ksh93 || echo ksh88
ksh88


Lastly, i'd like to...
13,008
Posted By dev.devil.1983
it now says ksh: CDT: not found
it now says


ksh: CDT: not found
13,008
Posted By dev.devil.1983
A simple date command gives the following ...
A simple date command gives the following


Monday, October 14, 2013 8:59:28 AM CDT
13,008
Posted By dev.devil.1983
Hi Sathya, it says EST not found. could you...
Hi Sathya,

it says EST not found. could you pls help me understand your code ?

also only the following piece seems to be working


$ date '+DATE: %F'


which is giving the following...
13,008
Posted By dev.devil.1983
sorry for the goofup .. but being fairly new .. i...
sorry for the goofup .. but being fairly new .. i am not sure of the exact version .. when i do a echo $0 , i just get 'ksh' without any version with it .. and a uname -r returns '5.10'

Request...
Showing results 1 to 25 of 39

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