Would it be possible for a script to duplicate a file and incrementally number it?
File in: XXX_007_0580_xxxx_v0016.aep
File out: XXX_007_0580_xxxx_v0017.aep
If someone knows of a way I'd love to see it.
what the best way to find duplicate IP from file ( I have ksh script in this script I need to write function that check for duplicate IP )
for example if IP - 192.1926.23.52 exists twice in file - config_IP.txt
then need to print "duplicate IP - xxx.xxx.xxx.xxx"
solution can be with ksh or perl one liner , sed ,awk etc
the format of the file should be as the following:
We have a file that arrives daily and has a sequence number in the trailer like
9999 TR SAP _AP Distribution 0000000000000001
where 0000000000000001 is the sequence number and the file that comes the next day should have 0000000000000002 and so on.